Use non-deprecated Gtk::Widget::size_request API in canvas library

This commit is contained in:
Tim Mayberry 2015-02-27 12:55:18 +10:00
parent fd502d3175
commit de2c1b10b6

View File

@ -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);