change Grid API to avoid unnecessary Duple and open door for row/col span
[ardour.git] / libs / canvas / grid.cc
index 7ceb1585ed49ac20b3961f61bb1d4ac7019e1015..f8fd0bcce4626ca80535ba329edef16ebdb6e67a 100644 (file)
@@ -313,10 +313,10 @@ Grid::reposition_children ()
 }
 
 void
-Grid::place (Item* i, Duple at)
+Grid::place (Item* i, double x, double y, double col_span, double row_span)
 {
        add (i);
-       coords_by_item.insert (std::make_pair (i, at));
+       coords_by_item.insert (std::make_pair (i, Duple (x, y)));
        reposition_children ();
 }