diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c index d60e1cb928..a81b0a5a4e 100644 --- a/gtk/gtkoverlay.c +++ b/gtk/gtkoverlay.c @@ -379,7 +379,7 @@ gtk_overlay_remove (GtkContainer *container, gtk_widget_unparent (widget); - for (w = gtk_widget_get_first_child (widget); + for (w = gtk_widget_get_first_child (GTK_WIDGET (container)); w != NULL; w = gtk_widget_get_next_sibling (w)) {