overlay: Make forall() remove-safe

Since this is a GtkContainer, forall will be used to destroy all the
widgets.
This commit is contained in:
Timm Bäder 2018-03-04 20:04:43 +01:00
parent 0bb1e1b1fd
commit 84b4f85f1a

View File

@ -459,11 +459,14 @@ gtk_overlay_forall (GtkContainer *overlay,
{
GtkWidget *child;
for (child = _gtk_widget_get_first_child (GTK_WIDGET (overlay));
child != NULL;
child = _gtk_widget_get_next_sibling (child))
child = gtk_widget_get_first_child (GTK_WIDGET (overlay));
while (child != NULL)
{
GtkWidget *next = gtk_widget_get_next_sibling (child);
(* callback) (child, callback_data);
child = next;
}
}