forked from AuroraMiddleware/gtk
expander: Use gtk_widget_measure
This commit is contained in:
parent
ed245b42cb
commit
4c94242988
@ -934,7 +934,8 @@ gtk_expander_resize_toplevel (GtkExpander *expander)
|
|||||||
{
|
{
|
||||||
GtkRequisition child_requisition;
|
GtkRequisition child_requisition;
|
||||||
|
|
||||||
gtk_widget_get_preferred_height_for_width (child, child_allocation.width, &child_requisition.height, NULL);
|
gtk_widget_measure (child, GTK_ORIENTATION_VERTICAL, child_allocation.width,
|
||||||
|
&child_requisition.height, NULL, NULL, NULL);
|
||||||
|
|
||||||
toplevel_allocation.height += child_requisition.height;
|
toplevel_allocation.height += child_requisition.height;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user