summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-09-18 19:49:45 +0000
committerCarl Hetherington <carl@carlh.net>2011-09-18 19:49:45 +0000
commitb8aabb310f8f8dd3888fa335ed19066249d9024c (patch)
tree4794abd8e9c0fa5fcbb37545ee067f1b5969612f /gtk2_ardour
parentc09f2eedf2a3d5bd7808d9445606de617ae7c871 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/rc_option_editor.cc13
1 files changed, 13 insertions, 0 deletions
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;