summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r--gtk2_ardour/editor.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index 3c1d886a11..1ed6569fcb 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -941,10 +941,15 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void reset_controls_layout_width ();
void reset_controls_layout_height (int32_t height);
- bool horizontal_scroll_left_press ();
- void horizontal_scroll_left_release ();
- bool horizontal_scroll_right_press ();
- void horizontal_scroll_right_release ();
+ enum Direction {
+ LEFT,
+ RIGHT,
+ UP,
+ DOWN
+ };
+
+ bool scroll_press (Direction);
+ void scroll_release ();
sigc::connection _scroll_connection;
int _scroll_callbacks;