mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Add to use non-deprecated size_request() API in gtk2mmext
This commit is contained in:
parent
1ed8bdf941
commit
e91c9ab636
1 changed files with 1 additions and 6 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue