using namespace ArdourCanvas;
-Image::Image (Group* group, Cairo::Format fmt, int width, int height)
- : Item (group)
+Image::Image (Canvas* canvas, Cairo::Format fmt, int width, int height)
+ : Item (canvas)
+ , _format (fmt)
+ , _width (width)
+ , _height (height)
+ , _need_render (false)
+{
+ DataReady.connect (data_connections, MISSING_INVALIDATOR, boost::bind (&Image::accept_data, this), gui_context());
+}
+
+Image::Image (Item* parent, Cairo::Format fmt, int width, int height)
+ : Item (parent)
, _format (fmt)
, _width (width)
, _height (height)