forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
2e27c0af25
commit
6e4d65d227
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user