From b8aabb310f8f8dd3888fa335ed19066249d9024c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 18 Sep 2011 19:49:45 +0000 Subject: Set the click paths when enter is pressed in their Entry (#part of 4321). git-svn-id: svn://localhost/ardour2/branches/3.0@10093 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/rc_option_editor.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 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; -- cgit v1.2.3