diff options
author | Timm Bäder <mail@baedert.org> | 2018-03-04 20:03:54 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-03-04 20:03:54 +0100 |
commit | 53410bab0f363aa7b7b761b913334b39b800a17d (patch) | |
tree | ba4f39a6703f03f3865440f6d1f51d1932618618 /gtk/gtkoverlay.c | |
parent | 31a0739bf39322dca8b22930640b23459c02e91f (diff) | |
download | gtk+-53410bab0f363aa7b7b761b913334b39b800a17d.tar.gz |
overlay: Fix remove implementation
Use the child widget list of the overlay, not the passed child.
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r-- | gtk/gtkoverlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |