From: Robin Gareus Date: Fri, 24 Feb 2017 22:40:13 +0000 (+0100) Subject: Group-override for faders X-Git-Tag: 5.7~21 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=4afa3aa65eef48f9ccfdaa2e3b18d5e260ee1e4a;p=ardour.git Group-override for faders Tentative solution. Eventually the gain_adjustment should be moved into the PixFader or SliderController and a dedicated API should replace gain_adjustment.signal_value_changed() --- diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 0a66784a93..42339267e9 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -581,7 +581,14 @@ GainMeterBase::fader_moved () value = gain_adjustment.get_value(); } - _control->set_value (value, Controllable::UseGroup); + // XXX hack allow to override group + // (this breaks group'ed shift+click reset) + if (Keyboard::the_keyboard().key_is_down (GDK_Shift_R) + || Keyboard::the_keyboard().key_is_down (GDK_Shift_L)) { + _control->set_value (value, Controllable::NoGroup); + } else { + _control->set_value (value, Controllable::UseGroup); + } } show_gain ();