summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2013-06-21 20:51:04 +0100
committerColin Fletcher <colin.m.fletcher@googlemail.com>2013-06-21 21:28:13 +0100
commitdaf4dd874a0c06802130eb4511d872841831d61a (patch)
tree48f0540ca84790dff67fa04d2896c1fa05840ecc /gtk2_ardour
parent741f9de3f7dda286181419c33cfe361a4f75c775 (diff)
Add vertical zoom via scroll wheel modifier key to editor summary.
If the ScrollZoomVerticalModifier key is used with the scroll wheel over the editor summary pane, zoom the editor vertically.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_summary.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc
index 14110e1d4f..0dc728d18e 100644
--- a/gtk2_ardour/editor_summary.cc
+++ b/gtk2_ardour/editor_summary.cc
@@ -629,6 +629,11 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
x -= 64;
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
_editor->temporal_zoom_step (false);
+ } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomVerticalModifier)) {
+ yr.first += 4;
+ yr.second -= 4;
+ set_editor (xr, yr);
+ return true;
} else {
y -= 8;
}
@@ -638,6 +643,11 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
x += 64;
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
_editor->temporal_zoom_step (true);
+ } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomVerticalModifier)) {
+ yr.first -= 4;
+ yr.second += 4;
+ set_editor (xr, yr);
+ return true;
} else {
y += 8;
}