summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note-event.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-09-21 03:02:30 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-09-21 03:02:30 +0000
commit2c80ff4129040f0083318e689a9548444296009b (patch)
tree48f44fc04bb069d3862da583616e0b017110f406 /gtk2_ardour/canvas-note-event.cc
parentff356beda56953231c81d1f257b2993e42c0df93 (diff)
lincoln's patch that makes us pay attention to region copies w.r.t the region list, PLUS make region list insert drags work again by not insisting that the list of regionviews be non-empty as the drag is constructed PLUS the start of tracking mouse cursor position in MIDI notes PLUS a bit of leftover debugging info
git-svn-id: svn://localhost/ardour2/branches/3.0@7817 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note-event.cc')
-rw-r--r--gtk2_ardour/canvas-note-event.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/canvas-note-event.cc b/gtk2_ardour/canvas-note-event.cc
index 80275d9362..739019b31e 100644
--- a/gtk2_ardour/canvas-note-event.cc
+++ b/gtk2_ardour/canvas-note-event.cc
@@ -239,6 +239,14 @@ CanvasNoteEvent::on_event(GdkEvent* ev)
_region.note_left (this);
break;
+ case GDK_MOTION_NOTIFY:
+ double ix, iy;
+ ix = ev->motion.x;
+ iy = ev->motion.y;
+ _item->w2i (ix, iy);
+ cerr << "note motion at " << ix << ',' << iy << endl;
+ break;
+
case GDK_BUTTON_PRESS:
if (ev->button.button == 3 && Keyboard::no_modifiers_active (ev->button.state)) {
show_channel_selector();