diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-10 23:33:26 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-10 23:33:26 +0000 |
commit | c482638aa6e0dbc0d4acdc93fe9712e1802fde32 (patch) | |
tree | cb28da2b8d23d2607e3fb14711f6e3f89d1f46b2 /gtk2_ardour/mixer_strip.cc | |
parent | ed72df29b79f9e2dc7482f07c39010b4523c4a8e (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.cc | 3 |
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). */ |