diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-22 16:05:51 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-22 16:05:51 -0500 |
commit | fdaa6a151aa6b0022879d282802b2166aec653dc (patch) | |
tree | 6af56c782e0c50dbe3f3327a086ace3469396090 /gtk2_ardour/ardour_knob.cc | |
parent | 25024e550ace5961e866803b21afbd0a2b9997ea (diff) |
3 monitor tweaks for the_CLA. shift+click to default, and new preset vals
Diffstat (limited to 'gtk2_ardour/ardour_knob.cc')
-rw-r--r-- | gtk2_ardour/ardour_knob.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_knob.cc b/gtk2_ardour/ardour_knob.cc index ade83e504c..7021cb9df1 100644 --- a/gtk2_ardour/ardour_knob.cc +++ b/gtk2_ardour/ardour_knob.cc @@ -335,6 +335,13 @@ ArdourKnob::on_button_press_event (GdkEventButton *ev) bool ArdourKnob::on_button_release_event (GdkEventButton *ev) { + if ( (_grabbed_y == ev->y) && Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) { //no move, shift-click sets to default + boost::shared_ptr<PBD::Controllable> c = binding_proxy.get_controllable(); + if (!c) return false; + c->set_value (c->normal()); + return true; + } + _grabbed = false; unset_active_state (); |