#include "canvas/canvas.h"
#include "canvas/widget.h"
#include "canvas/debug.h"
-#include "canvas/utils.h"
using namespace std;
using namespace ArdourCanvas;
//context->rectangle (draw.x0, draw.y0, draw.width(), draw.height());
//context->clip ();
- _widget.render (context->cobj(), &crect);
+ _widget.render (context, &crect);
context->restore ();
}
+void
+Widget::size_allocate (Rect const & r)
+{
+ Item::size_allocate (r);
+ Gtk::Allocation alloc;
+ alloc.set_x (0);
+ alloc.set_y (0);
+ alloc.set_width (r.width());
+ alloc.set_height (r.height());
+ _widget.size_allocate (alloc);
+}
+
void
Widget::compute_bounding_box () const
{