diff options
Diffstat (limited to 'gtk2_ardour/canvas-note.cc')
-rw-r--r-- | gtk2_ardour/canvas-note.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/canvas-note.cc b/gtk2_ardour/canvas-note.cc index b43514edcc..4686a80df9 100644 --- a/gtk2_ardour/canvas-note.cc +++ b/gtk2_ardour/canvas-note.cc @@ -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 |