summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-19 19:27:26 +0100
committerRobin Gareus <robin@gareus.org>2017-01-19 19:27:44 +0100
commitaaf441d18fc6df23ca781ae18708757ff58527e1 (patch)
tree4a101a64d4173143ee49e98fd020fcbfab5d8fe5 /gtk2_ardour/rc_option_editor.cc
parente35f11e515bac6ea0d76684badef28408fc0d0e5 (diff)
Fix metronome level preference display
click-level fader is not a component added to the top-level, the page intercepts the parameter_changed signal
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 4a5b0a8eef..61013dbce5 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -113,15 +113,15 @@ public:
sigc::mem_fun (*this, &ClickOptions::click_emphasis_browse_clicked));
t->attach (_click_emphasis_browse_button, 3, 4, 3, 4, FILL);
- FaderOption* fo = new FaderOption (
+ _click_fader = new FaderOption (
"click-gain",
_("Gain level"),
sigc::mem_fun (*_rc_config, &RCConfiguration::get_click_gain),
sigc::mem_fun (*_rc_config, &RCConfiguration::set_click_gain)
);
- fo->add_to_page (this);
- fo->set_state_from_config ();
+ _click_fader->add_to_page (this);
+ _click_fader->set_state_from_config ();
_click_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_changed));
_click_emphasis_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_emphasis_changed));
@@ -146,6 +146,8 @@ public:
} else if (p == "use-click-emphasis") {
bool x = _rc_config->get_use_click_emphasis ();
_use_emphasis_on_click_check_button.set_active (x);
+ } else if (p == "click-gain") {
+ _click_fader->set_state_from_config ();
}
}
@@ -237,6 +239,7 @@ private:
Entry _click_emphasis_path_entry;
Button _click_browse_button;
Button _click_emphasis_browse_button;
+ FaderOption* _click_fader;
};
class UndoOptions : public OptionEditorComponent