summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_options.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-08-24 18:23:35 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-08-24 18:23:35 +0000
commit3dc5ac4b96ff4183a91007999b10d2c3553518b5 (patch)
tree13d461ebc0de460f21d77399a4af13cb9002af86 /gtk2_ardour/ardour_ui_options.cc
parent5fe2ee7c9f617cd77c70e948c968490aae83b097 (diff)
restore visual DC bias on/off indicator
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2345 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r--gtk2_ardour/ardour_ui_options.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc
index e6a31d58cf..c2669d1884 100644
--- a/gtk2_ardour/ardour_ui_options.cc
+++ b/gtk2_ardour/ardour_ui_options.cc
@@ -577,6 +577,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 ()
{
const char* on = 0;
@@ -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")) {