summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-11-03 17:05:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-11-03 17:05:17 +0000
commitbb520383a374789783321d4c19d71c97541c4315 (patch)
treeb3770a9d8edc291164038deafb6299658e83dfa8 /gtk2_ardour/gain_meter.cc
parent1ae268ad2a817a7d6843ce09efb32f3dc0fa6281 (diff)
meta-fy handling of button2, to deal with apple's messed up design decisions; on gtk/osx, button2 is (currently) Ctrl-Option-Button1
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4087 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r--gtk2_ardour/gain_meter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 1d05d43876..3e60b39128 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -453,7 +453,7 @@ GainMeterBase::meter_press(GdkEventButton* ev)
} else {
- if (ev->button == 2) {
+ if (Keyboard::is_button2_event(ev)) {
// Primary-button2 click is the midi binding click
// button2-click is "momentary"
@@ -464,7 +464,7 @@ GainMeterBase::meter_press(GdkEventButton* ev)
}
}
- if (ev->button == 1 || ev->button == 2) {
+ if (ev->button == 1 || Keyboard::is_button2_event (ev)) {
if (Keyboard::modifier_state_equals (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier|Keyboard::TertiaryModifier))) {