summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-10 23:33:26 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-10 23:33:26 +0000
commitc482638aa6e0dbc0d4acdc93fe9712e1802fde32 (patch)
treecb28da2b8d23d2607e3fb14711f6e3f89d1f46b2 /gtk2_ardour/mixer_strip.cc
parented72df29b79f9e2dc7482f07c39010b4523c4a8e (diff)
Revert to fader-is-for-route on double-clicking a mixer strip's fader. Fixes #3685.
git-svn-id: svn://localhost/ardour2/branches/3.0@8496 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 8c6d612012..31098f304f 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -306,6 +306,9 @@ MixerStrip::init ()
input_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::input_press), false);
output_button.signal_button_press_event().connect (sigc::mem_fun(*this, &MixerStrip::output_press), false);
+ /* Go back to displaying our route's gain in the slider if it is double-clicked */
+ gain_meter().SliderDoubleClicked.connect (*this, invalidator (*this), boost::bind (&MixerStrip::revert_to_default_display, this), gui_context ());
+
/* we don't need this if its not an audio track, but we don't know that yet and it doesn't
hurt (much).
*/