summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-24 23:40:13 +0100
committerRobin Gareus <robin@gareus.org>2017-02-24 23:41:22 +0100
commit4afa3aa65eef48f9ccfdaa2e3b18d5e260ee1e4a (patch)
treed84ffff46030375217c4c72e8450ae782f1dd4d6 /gtk2_ardour
parenta1a2e088a53e6aaeab6dc8715f522a4fc633cf7c (diff)
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()
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/gain_meter.cc9
1 files changed, 8 insertions, 1 deletions
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 ();