diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-22 21:21:44 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-22 21:25:53 +0900 |
commit | e20503836c3d91d52eb0448ebb34f599d7b87300 (patch) | |
tree | d58b739d2ee8b775cbafe2549a356cc8ea6f881f /gtk/gtkgrid.c | |
parent | 367211ed7f19f1f9fe3a658278e8c6083d86f1f6 (diff) | |
download | gtk+-e20503836c3d91d52eb0448ebb34f599d7b87300.tar.gz |
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
This loop needs to be safe for removing children in a forall loop.
Diffstat (limited to 'gtk/gtkgrid.c')
-rw-r--r-- | gtk/gtkgrid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c index 7aaf8ef818..3557c16949 100644 --- a/gtk/gtkgrid.c +++ b/gtk/gtkgrid.c @@ -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); } |