cut ops can start with the mouse pointer not over a region
[ardour.git] / libs / canvas / flag.cc
index e72aece1f56ac2c7a0a7fb13d749a0e5beef2434..243e71cd170e822735a278a8695d1efe81b3f7ca 100644 (file)
 using namespace std;
 using namespace ArdourCanvas;
 
-Flag::Flag (Group* parent, Distance height, Color outline_color, Color fill_color, Duple position)
-       : Group (parent)
+Flag::Flag (Canvas* canvas, Distance height, Color outline_color, Color fill_color, Duple position)
+       : Container (canvas)
        , _outline_color (outline_color)
        , _fill_color (fill_color)
+{
+       setup (height, position);
+}
+
+Flag::Flag (Item* parent, Distance height, Color outline_color, Color fill_color, Duple position)
+       : Container (parent)
+       , _outline_color (outline_color)
+       , _fill_color (fill_color)
+{
+       setup (height, position);
+}
+
+void 
+Flag::setup (Distance height, Duple position)
 {
        _text = new Text (this);
        _text->set_alignment (Pango::ALIGN_CENTER);