[gtk+] scrolledwindow: destroy children in destroy()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolledwindow: destroy children in destroy()
- Date: Sat, 14 May 2016 15:15:37 +0000 (UTC)
commit 30d2dc49a88bcd584f9858de83509339de574f89
Author: Benjamin Otte <otte redhat com>
Date: Sat May 14 17:13:52 2016 +0200
scrolledwindow: destroy children in destroy()
If we don't do that, testsuite/gtk/templates starts failing.
gtk/gtkscrolledwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index e4927e7..2f2b802 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]