Add to use non-deprecated size_request() API in gtk2mmext

This commit is contained in:
Tim Mayberry 2016-12-08 21:56:29 +10:00
parent 1ed8bdf941
commit e91c9ab636

View file

@ -93,9 +93,7 @@ Pane::on_size_request (GtkRequisition* req)
}
for (Children::iterator child = children.begin(); child != children.end(); ++child) {
GtkRequisition r;
child->w->size_request (r);
GtkRequisition r = child->w->size_request ();
if (horizontal) {
largest.height = max (largest.height, r.height);
@ -261,9 +259,6 @@ Pane::reallocate (Gtk::Allocation const & alloc)
fract = (*div)->fract;
}
Gtk::Requisition cr;
child->w->size_request (cr);
if (horizontal) {
child_alloc.set_width ((gint) floor (remaining * fract));
child_alloc.set_height (alloc.get_height());