From aaf441d18fc6df23ca781ae18708757ff58527e1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 19 Jan 2017 19:27:26 +0100 Subject: Fix metronome level preference display click-level fader is not a component added to the top-level, the page intercepts the parameter_changed signal --- gtk2_ardour/rc_option_editor.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/rc_option_editor.cc') 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 -- cgit v1.2.3