From 69e5d23af7f184c1ce00d5922ae38b07ae2d1ad8 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sat, 1 Feb 2003 01:27:00 +0000 Subject: [PATCH] set_state on the tab_label before unparenting it, in case the unparent Fri Jan 31 17:23:59 2003 Manish Singh * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state on the tab_label before unparenting it, in case the unparent drops the refcount to 0. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtknotebook.c | 2 +- 6 files changed, 31 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f3274d805..37f1727048 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Jan 31 17:23:59 2003 Manish Singh + + * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state + on the tab_label before unparenting it, in case the unparent + drops the refcount to 0. + Thu Jan 30 23:44:52 2003 Owen Taylor * NEWS: Updates. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8f3274d805..37f1727048 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Fri Jan 31 17:23:59 2003 Manish Singh + + * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state + on the tab_label before unparenting it, in case the unparent + drops the refcount to 0. + Thu Jan 30 23:44:52 2003 Owen Taylor * NEWS: Updates. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 8f3274d805..37f1727048 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Fri Jan 31 17:23:59 2003 Manish Singh + + * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state + on the tab_label before unparenting it, in case the unparent + drops the refcount to 0. + Thu Jan 30 23:44:52 2003 Owen Taylor * NEWS: Updates. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 8f3274d805..37f1727048 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Fri Jan 31 17:23:59 2003 Manish Singh + + * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state + on the tab_label before unparenting it, in case the unparent + drops the refcount to 0. + Thu Jan 30 23:44:52 2003 Owen Taylor * NEWS: Updates. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 8f3274d805..37f1727048 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Fri Jan 31 17:23:59 2003 Manish Singh + + * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state + on the tab_label before unparenting it, in case the unparent + drops the refcount to 0. + Thu Jan 30 23:44:52 2003 Owen Taylor * NEWS: Updates. diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 4db8c0c981..4e740e7e2b 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2360,8 +2360,8 @@ gtk_notebook_remove_tab_label (GtkNotebook *notebook, page->mnemonic_activate_signal); page->mnemonic_activate_signal = 0; - gtk_widget_unparent (page->tab_label); gtk_widget_set_state (page->tab_label, GTK_STATE_NORMAL); + gtk_widget_unparent (page->tab_label); } }