mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
Merge branch 'wip/chergert/fix-anchored-cleanup' into 'master'
textview: properly remove anchored widgets Closes #3021 See merge request GNOME/gtk!2378
This commit is contained in:
commit
883a43ddd7
@ -2053,7 +2053,7 @@ gtk_text_view_set_buffer (GtkTextView *text_view,
|
||||
while (priv->anchored_children.length)
|
||||
{
|
||||
AnchoredChild *ac = g_queue_peek_head (&priv->anchored_children);
|
||||
gtk_widget_unparent (ac->widget);
|
||||
gtk_text_view_remove (text_view, ac->widget);
|
||||
/* ac is now invalid! */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user