[gtk+] expander: Destroy gadgets after child widgets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Destroy gadgets after child widgets
- Date: Fri, 15 Jan 2016 15:30:24 +0000 (UTC)
commit 6d18b77ca7b81310f46d45eab3e2bdaa0b86396c
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 15 10:29:20 2016 -0500
expander: Destroy gadgets after child widgets
With child widgets now being sorted into box gadgets, bad things
happen if those gadgets disappear prematurely.
gtk/gtkexpander.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 4f15bc1..eb1ac7a 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -591,11 +591,11 @@ gtk_expander_destroy (GtkWidget *widget)
g_clear_object (&priv->multipress_gesture);
+ GTK_WIDGET_CLASS (gtk_expander_parent_class)->destroy (widget);
+
g_clear_object (&priv->arrow_gadget);
g_clear_object (&priv->title_gadget);
g_clear_object (&priv->gadget);
-
- GTK_WIDGET_CLASS (gtk_expander_parent_class)->destroy (widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]