summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-08-24 19:02:26 +0000
committerCarl Hetherington <carl@carlh.net>2009-08-24 19:02:26 +0000
commit96a85da8dd34fef4370aea9ed215edbf61a49e70 (patch)
treebd98a0c5361c390525d417b99635e91d542c4b75 /gtk2_ardour/editor_summary.cc
parent32acb9377ff87ec730473d00c9402121197c980a (diff)
Tertiary-modifier click locates the viewbox in the summary.
git-svn-id: svn://localhost/ardour2/branches/3.0@5582 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r--gtk2_ardour/editor_summary.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc
index 7cb2faf9fe..e9eb5f43e3 100644
--- a/gtk2_ardour/editor_summary.cc
+++ b/gtk2_ardour/editor_summary.cc
@@ -289,10 +289,14 @@ EditorSummary::on_button_press_event (GdkEventButton* ev)
if (_session) {
_session->request_locate (ev->x / _x_scale + _session->current_start_frame());
}
+
+ } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
+
+ centre_on_click (ev);
- } else if (xr.first <= ev->x && ev->x <= xr.second && yr.first <= ev->y && ev->y <= yr.second) {
+ } else {
- /* ordinary click inside the view rectangle: start a move drag */
+ /* ordinary click: start a move drag */
_move_dragging = true;
_moved = false;
@@ -349,10 +353,6 @@ EditorSummary::on_motion_notify_event (GdkEventMotion* ev)
bool
EditorSummary::on_button_release_event (GdkEventButton* ev)
{
- if (_move_dragging && !_moved) {
- centre_on_click (ev);
- }
-
_move_dragging = false;
_zoom_dragging = false;
_editor->_dragging_playhead = false;