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:
Matthias Clasen 2020-08-05 21:49:42 +00:00
commit 883a43ddd7

View File

@ -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! */
}