Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
This loop needs to be safe for removing children in a forall loop.
This commit is contained in:
@ -439,9 +439,11 @@ gtk_grid_forall (GtkContainer *container,
|
|||||||
GtkGridChild *child;
|
GtkGridChild *child;
|
||||||
GList *list;
|
GList *list;
|
||||||
|
|
||||||
for (list = priv->children; list; list = list->next)
|
list = priv->children;
|
||||||
|
while (list)
|
||||||
{
|
{
|
||||||
child = list->data;
|
child = list->data;
|
||||||
|
list = list->next;
|
||||||
|
|
||||||
(* callback) (child->widget, callback_data);
|
(* callback) (child->widget, callback_data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user