summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-07-14 01:24:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-07-14 01:24:16 +0000
commitf01af9836e46fb2c459d16e9956ff6b9be0355d0 (patch)
tree04445b709f1009e14f0c2ac6c1ce0116e43a5664 /gtk2_ardour/mixer_strip.cc
parent997dd32d5ea12ec9412858ac0bdbc88e603ca8a1 (diff)
fix broken accels in mixer window BUT note that processor box now swallows keys that have default GTK functions in a tree/listview, like space. thinking about possible solutions to this. added zero key (0) to reset gain to 0dB
git-svn-id: svn://localhost/ardour2/branches/3.0@5361 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index a0e3f2e25b..b18e1699b2 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -1530,6 +1530,12 @@ MixerStrip::on_key_press_event (GdkEventKey* ev)
}
return true;
break;
+
+ case GDK_0:
+ if (_route) {
+ _route->set_gain (1.0, this);
+ }
+ return true;
default:
break;