diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-22 15:21:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-22 15:21:06 +0000 |
commit | ded4a143db069785aa33eeb6dc9da02770e3ae8e (patch) | |
tree | d1a2b94e11a4fe4a1d173e7972414cc16ecee7fd /gtk2_ardour/canvas-note-event.cc | |
parent | d4aaa9c10cd21ef7e1b0f5509963b57c2465302b (diff) |
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
Diffstat (limited to 'gtk2_ardour/canvas-note-event.cc')
-rw-r--r-- | gtk2_ardour/canvas-note-event.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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); } } |