ogg/flac support bits and pieces; fix up MIDI note dragging and front-edge trims...
[ardour.git] / gtk2_ardour / canvas-note.cc
index b43514edcc82d5383bba0a5303e614b00714a2bc..4686a80df98f0c2fd8f2840c3db80c93e856d209 100644 (file)
@@ -18,5 +18,22 @@ CanvasNote::on_event(GdkEvent* ev)
        }
 }
 
+void 
+CanvasNote::move_event(double dx, double dy)
+{
+       property_x1() = property_x1() + dx;
+       property_y1() = property_y1() + dy;
+       property_x2() = property_x2() + dx;
+       property_y2() = property_y2() + dy;
+
+       if (_text) {
+               _text->hide();
+               _text->property_x() = _text->property_x() + dx;
+               _text->property_y() = _text->property_y() + dy;
+               _text->show();
+       }
+}
+
+
 } // namespace Gnome
 } // namespace Canvas