26 lines
850 B
Diff
26 lines
850 B
Diff
diff -up gtk+-2.12.3/gtk/gtknotebook.c.tab-label gtk+-2.12.3/gtk/gtknotebook.c
|
|
--- gtk+-2.12.3/gtk/gtknotebook.c.tab-label 2007-12-11 14:00:13.000000000 -0500
|
|
+++ gtk+-2.12.3/gtk/gtknotebook.c 2007-12-11 14:00:34.000000000 -0500
|
|
@@ -4349,12 +4349,15 @@ gtk_notebook_real_remove (GtkNotebook *n
|
|
gtk_widget_unparent (page->child);
|
|
|
|
tab_label = page->tab_label;
|
|
- g_object_ref (tab_label);
|
|
- gtk_notebook_remove_tab_label (notebook, page);
|
|
- if (destroying)
|
|
- gtk_widget_destroy (tab_label);
|
|
- g_object_unref (tab_label);
|
|
-
|
|
+ if (tab_label)
|
|
+ {
|
|
+ g_object_ref (tab_label);
|
|
+ gtk_notebook_remove_tab_label (notebook, page);
|
|
+ if (destroying)
|
|
+ gtk_widget_destroy (tab_label);
|
|
+ g_object_unref (tab_label);
|
|
+ }
|
|
+
|
|
if (notebook->menu)
|
|
{
|
|
gtk_container_remove (GTK_CONTAINER (notebook->menu),
|