scrolledwindow: destroy children in destroy()

If we don't do that, testsuite/gtk/templates starts failing.
This commit is contained in:
Benjamin Otte 2016-05-14 17:13:52 +02:00
parent f0f8d6d6b0
commit 30d2dc49a8

View File

@ -2677,7 +2677,7 @@ gtk_scrolled_window_destroy (GtkWidget *widget)
child = gtk_bin_get_child (GTK_BIN (widget));
if (child)
gtk_container_remove (GTK_CONTAINER (widget), child);
gtk_widget_destroy (child);
remove_indicator (scrolled_window, &priv->hindicator);
remove_indicator (scrolled_window, &priv->vindicator);