[gtk+] notebook: Destroy gadgets after chaining up
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Destroy gadgets after chaining up
- Date: Fri, 15 Jan 2016 15:23:13 +0000 (UTC)
commit 6e4d65d227fa31c44e90597e97184dcfdf9f9f26
Author: Benjamin Otte <otte redhat com>
Date: Fri Jan 15 12:58:14 2016 +0100
notebook: Destroy gadgets after chaining up
While chaining up, we might still call into the notebook code. And that
code expects the gadgets to be there.
https://bugzilla.gnome.org/show_bug.cgi?id=760640
gtk/gtknotebook.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 203e2a8..3b9f7d4 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1811,14 +1811,14 @@ gtk_notebook_destroy (GtkWidget *widget)
priv->source_targets = NULL;
}
+ remove_switch_tab_timer (notebook);
+
+ GTK_WIDGET_CLASS (gtk_notebook_parent_class)->destroy (widget);
+
g_clear_object (&priv->gadget);
g_clear_object (&priv->header_gadget);
g_clear_object (&priv->tabs_gadget);
g_clear_object (&priv->stack_gadget);
-
- remove_switch_tab_timer (notebook);
-
- GTK_WIDGET_CLASS (gtk_notebook_parent_class)->destroy (widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]