overlay: Fix remove implementation

Use the child widget list of the overlay, not the passed child.
This commit is contained in:
Timm Bäder 2018-03-04 20:03:54 +01:00
parent 31a0739bf3
commit 53410bab0f

View File

@ -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))
{