X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fnote.cc;h=3adcd751f8f8d8c2f2cb163684c1159bf2f5b986;hb=e36f74e071d4c14862d23da5ff0d49df0940d536;hp=30149866c006305b73b389bb2e951b587d8fbd7c;hpb=770dbf8fdcbf25aa99a51edce739e07dfff1b1f6;p=ardour.git diff --git a/gtk2_ardour/note.cc b/gtk2_ardour/note.cc index 30149866c0..3adcd751f8 100644 --- a/gtk2_ardour/note.cc +++ b/gtk2_ardour/note.cc @@ -47,7 +47,7 @@ Note::~Note () void Note::move_event (double dx, double dy) { - _rectangle->move (Duple (dx, dy)); + _rectangle->set (_rectangle->get().translate (Duple (dx, dy))); } Coord @@ -123,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) {