restore visual DC bias on/off indicator
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Aug 2007 18:23:35 +0000 (18:23 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 24 Aug 2007 18:23:35 +0000 (18:23 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2345 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.h
gtk2_ardour/ardour_ui_options.cc

index 2afde4207a8cd57071d12495440b7fdf9ce3a44b..4d4ec911be0ae65835c15c84aeaa4abf19ee0428 100644 (file)
@@ -706,6 +706,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
        void map_solo_model ();
        void map_monitor_model ();
        void map_denormal_model ();
+       void map_denormal_protection ();
        void map_remote_model ();
        void map_file_header_format ();
        void map_file_data_format ();
index e6a31d58cf45195236fe9bb499db4055fbf4967f..c2669d1884a20b2cc91ebdeba8021e7cd963037c 100644 (file)
@@ -576,6 +576,19 @@ ARDOUR_UI::map_monitor_model ()
        }
 }
 
+void
+ARDOUR_UI::map_denormal_protection ()
+{
+       Glib::RefPtr<Action> act = ActionManager::get_action ("options", X_("DenormalProtection"));
+       if (act) {
+               Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
+
+               if (tact && !tact->get_active()) {
+                       tact->set_active (Config->get_denormal_protection());
+               }
+       }
+}
+
 void
 ARDOUR_UI::map_denormal_model ()
 {
@@ -1001,6 +1014,8 @@ ARDOUR_UI::parameter_changed (const char* parameter_name)
                map_monitor_model ();
        } else if (PARAM_IS ("denormal-model")) {
                map_denormal_model ();
+       } else if (PARAM_IS ("denormal-protection")) {
+               map_denormal_protection ();
        } else if (PARAM_IS ("remote-model")) {
                map_remote_model ();
        } else if (PARAM_IS ("use-video-sync")) {