now that regions and range selections are exclusive, the separate actions to set...
[ardour.git] / libs / canvas / widget.cc
index 0961382128b0d13564d14ec1a875b6e5ce12f871..25541c1660abf8bbe349925e36a35130394d91c1 100644 (file)
@@ -36,8 +36,8 @@ Widget::Widget (Canvas* c, CairoWidget& w)
        Event.connect (sigc::mem_fun (*this, &Widget::event_proxy));
 }
 
-Widget::Widget (Group* g, CairoWidget& w)
-       : Item (g)
+Widget::Widget (Item* parent, CairoWidget& w)
+       : Item (parent)
        , _widget (w)
 {
        Event.connect (sigc::mem_fun (*this, &Widget::event_proxy));
@@ -91,7 +91,7 @@ Widget::compute_bounding_box () const
 {
        std::cerr << "cbbox for widget\n";
 
-       GtkRequisition req;
+       GtkRequisition req = { 0, 0 };
        Gtk::Allocation alloc;
 
        _widget.size_request (req);