]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfixed.c
a11y: Re-implement gtk_tree_view_accessible_get_n_rows()
[~andy/gtk] / gtk / gtkfixed.c
index e61f03a625595014624c58b3d2360ce61bc7b720..e4530058e86cc452e46e733678f994b314eb6eb3 100644 (file)
@@ -526,8 +526,6 @@ gtk_fixed_remove (GtkContainer *container,
 
           break;
         }
-
-      children = children->next;
     }
 }
 
@@ -542,9 +540,11 @@ gtk_fixed_forall (GtkContainer *container,
   GtkFixedChild *child;
   GList *children;
 
-  for (children = priv->children; children; children = children->next)
+  children = priv->children;
+  while (children)
     {
       child = children->data;
+      children = children->next;
 
       (* callback) (child->widget, callback_data);
     }