summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-05-31 18:04:54 +0000
committerCarl Hetherington <carl@carlh.net>2012-05-31 18:04:54 +0000
commit19becdf7e02b32465573d69b746736267fb67e88 (patch)
treee711ed5d298e38fab20db53c8b9b12c757bfe2a5 /libs
parent6a4628e50acaaf1540491cf4aac412e8bb3fc0b3 (diff)
Add primary-modifier click on monitor knobs to go to -inf dB (part
of patch by emem in #4726). git-svn-id: svn://localhost/ardour2/branches/3.0@12511 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/motionfeedback.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/motionfeedback.cc b/libs/gtkmm2ext/motionfeedback.cc
index b5bdd82aa5..cb1d2cba88 100644
--- a/libs/gtkmm2ext/motionfeedback.cc
+++ b/libs/gtkmm2ext/motionfeedback.cc
@@ -184,7 +184,10 @@ MotionFeedback::pixwin_button_release_event (GdkEventButton *ev)
/* shift click back to the default */
_controllable->set_value (default_value);
return true;
- }
+ } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
+ /* ctrl click back to the minimum value */
+ _controllable->set_value (_controllable->lower ());
+ }
break;
case 3: