forked from AuroraMiddleware/gtk
widget: make sure to check all children for allocation needs
GtkWidget uses gtk_container_foreach() to iterate over children and check whether they need their allocation reset. However, that leaves out internal children, such as scrollbars of a GtkScrolledWindow. Use gtk_container_forall() instead.
This commit is contained in:
parent
187027942c
commit
8e1368e6de
@ -16256,9 +16256,9 @@ gtk_widget_ensure_allocate (GtkWidget *widget)
|
||||
priv->alloc_needed_on_child = FALSE;
|
||||
|
||||
if (GTK_IS_CONTAINER (widget))
|
||||
gtk_container_foreach (GTK_CONTAINER (widget),
|
||||
(GtkCallback) gtk_widget_ensure_allocate,
|
||||
NULL);
|
||||
gtk_container_forall (GTK_CONTAINER (widget),
|
||||
(GtkCallback) gtk_widget_ensure_allocate,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user