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:
Tristan Van Berkom
2010-12-22 21:21:44 +09:00
parent 367211ed7f
commit e20503836c

View File

@ -439,9 +439,11 @@ gtk_grid_forall (GtkContainer *container,
GtkGridChild *child;
GList *list;
for (list = priv->children; list; list = list->next)
list = priv->children;
while (list)
{
child = list->data;
list = list->next;
(* callback) (child->widget, callback_data);
}