Use non-deprecated Gtk::Widget::size_request API in canvas library
This commit is contained in:
parent
fd502d3175
commit
de2c1b10b6
@ -91,11 +91,9 @@ Widget::compute_bounding_box () const
|
||||
{
|
||||
std::cerr << "cbbox for widget\n";
|
||||
|
||||
GtkRequisition req = { 0, 0 };
|
||||
GtkRequisition req = _widget.size_request ();
|
||||
Gtk::Allocation alloc;
|
||||
|
||||
_widget.size_request (req);
|
||||
|
||||
std::cerr << "widget wants " << req.width << " x " << req.height << "\n";
|
||||
|
||||
_bounding_box = Rect (0, 0, req.width, req.height);
|
||||
|
Loading…
Reference in New Issue
Block a user