Visual tweaks to Soundcloud panel
[ardour.git] / gtk2_ardour / note.cc
index 3726d2f08262e7e6e42b2d8ccfda29f5d9e0d098..3adcd751f8f8d8c2f2cb163684c1159bf2f5b986 100644 (file)
@@ -47,15 +47,7 @@ Note::~Note ()
 void
 Note::move_event (double dx, double dy)
 {
-       _rectangle->move (Duple (dx, dy));
-
-       /* XXX */
-       // if (_text) {
-       //      _text->hide();
-       //      _text->property_x() = _text->property_x() + dx;
-       //      _text->property_y() = _text->property_y() + dy;
-       //      _text->show();
-       // }
+       _rectangle->set (_rectangle->get().translate (Duple (dx, dy)));
 }
 
 Coord
@@ -131,11 +123,17 @@ Note::set_y1 (Coord y1)
 }
 
 void
-Note::set_outline_what (int what)
+Note::set_outline_what (ArdourCanvas::Rectangle::What what)
 {
        _rectangle->set_outline_what (what);
 }
 
+void
+Note::set_outline_all ()
+{
+       _rectangle->set_outline_all ();
+}
+
 void
 Note::set_ignore_events (bool ignore)
 {