forked from AuroraMiddleware/gtk
Merge branch 'kjellahl/flowboxremove' into 'master'
flowbox: Don't use a removed and destroyed child See merge request GNOME/gtk!2029
This commit is contained in:
commit
8ddf1f1ea5
@ -3046,8 +3046,8 @@ gtk_flow_box_remove (GtkFlowBox *box,
|
||||
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