From ded4a143db069785aa33eeb6dc9da02770e3ae8e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 22 Sep 2010 15:21:06 +0000 Subject: much craziness with canvas cursors; fix 0 beat cursor text when shortening notes; fix crash when trimming locked regions; don't show trim cursors when region is locked; partial version of enumwriter validation fix from 2.X (less necessary with 3.0; probably more ... git-svn-id: svn://localhost/ardour2/branches/3.0@7831 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/canvas-note-event.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/canvas-note-event.cc') diff --git a/gtk2_ardour/canvas-note-event.cc b/gtk2_ardour/canvas-note-event.cc index b1bfa49ab4..a3a5dd9a1a 100644 --- a/gtk2_ardour/canvas-note-event.cc +++ b/gtk2_ardour/canvas-note-event.cc @@ -230,15 +230,18 @@ CanvasNoteEvent::set_mouse_fractions (GdkEvent* ev) { double ix, iy; double bx1, bx2, by1, by2; + bool set_cursor = false; switch (ev->type) { case GDK_MOTION_NOTIFY: ix = ev->motion.x; iy = ev->motion.y; + set_cursor = true; break; case GDK_ENTER_NOTIFY: ix = ev->crossing.x; iy = ev->crossing.y; + set_cursor = true; break; case GDK_BUTTON_PRESS: case GDK_BUTTON_RELEASE: @@ -275,7 +278,7 @@ CanvasNoteEvent::set_mouse_fractions (GdkEvent* ev) _mouse_y_fraction = yf; if (notify) { - _region.note_mouse_position (_mouse_x_fraction, _mouse_y_fraction); + _region.note_mouse_position (_mouse_x_fraction, _mouse_y_fraction, set_cursor); } } -- cgit v1.2.3