Merge branch 'wip/chergert/fix-stack-page-leak' into 'main'

stack: clear accessible parent when removing child

Closes #5626

See merge request GNOME/gtk!5571
This commit is contained in:
Emmanuele Bassi 2023-02-28 23:24:57 +00:00
commit 8eb3c55709

View File

@ -1726,6 +1726,7 @@ stack_remove (GtkStack *stack,
if (priv->last_visible_child == child_info)
priv->last_visible_child = NULL;
gtk_accessible_set_accessible_parent (GTK_ACCESSIBLE (child), NULL, NULL);
gtk_widget_unparent (child);
g_clear_object (&child_info->widget);