diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 597bdb50fc..bf6fbaa05c 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -80,6 +80,9 @@ public: t->attach (*b, 2, 3, 1, 2, FILL); _box->pack_start (*t, false, false); + + _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)); } void parameter_changed (string const & p) @@ -117,6 +120,11 @@ private: _rc_config->set_click_sound (path); } + void click_changed () + { + click_chosen (_click_path_entry.get_text ()); + } + void click_emphasis_browse_clicked () { SoundFileChooser sfdb (*_parent, _("Choose Click Emphasis")); @@ -135,6 +143,11 @@ private: _rc_config->set_click_emphasis_sound (path); } + void click_emphasis_changed () + { + click_emphasis_chosen (_click_emphasis_path_entry.get_text ()); + } + RCConfiguration* _rc_config; ArdourDialog* _parent; Entry _click_path_entry;