mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
flowbox: Don't use a removed child after it has been unparented
In gtk_flow_box_remove(), call g_sequence_remove() before the child is unparented. See MR !2029
This commit is contained in:
parent
e169c35613
commit
52d944ec44
@ -3270,8 +3270,8 @@ gtk_flow_box_remove (GtkContainer *container,
|
||||
if (child == priv->selected_child)
|
||||
priv->selected_child = NULL;
|
||||
|
||||
gtk_widget_unparent (GTK_WIDGET (child));
|
||||
g_sequence_remove (CHILD_PRIV (child)->iter);
|
||||
gtk_widget_unparent (GTK_WIDGET (child));
|
||||
|
||||
if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box)))
|
||||
gtk_widget_queue_resize (GTK_WIDGET (box));
|
||||
|
Loading…
Reference in New Issue
Block a user