mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
overlay: Fix remove implementation
Use the child widget list of the overlay, not the passed child.
This commit is contained in:
parent
31a0739bf3
commit
53410bab0f
@ -379,7 +379,7 @@ gtk_overlay_remove (GtkContainer *container,
|
|||||||
|
|
||||||
gtk_widget_unparent (widget);
|
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 != NULL;
|
||||||
w = gtk_widget_get_next_sibling (w))
|
w = gtk_widget_get_next_sibling (w))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user