From 53410bab0f363aa7b7b761b913334b39b800a17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 4 Mar 2018 20:03:54 +0100 Subject: [PATCH] overlay: Fix remove implementation Use the child widget list of the overlay, not the passed child. --- gtk/gtkoverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {