Another fix to avoid further fallout from the fix for bug 388321.
2007-12-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_real_remove): Another fix to avoid further fallout from the fix for bug 388321. svn path=/trunk/; revision=19139
This commit is contained in:

committed by
Matthias Clasen

parent
494b0e4ca9
commit
2a702dcd42
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtknotebook.c (gtk_notebook_real_remove): Another fix
|
||||||
|
to avoid further fallout from the fix for bug 388321.
|
||||||
|
|
||||||
2007-12-09 09:56:06 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
|
2007-12-09 09:56:06 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
|
||||||
|
|
||||||
* gdk/directfb/gdkgc-directfb.c:
|
* gdk/directfb/gdkgc-directfb.c:
|
||||||
|
@ -4349,11 +4349,14 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
|
|||||||
gtk_widget_unparent (page->child);
|
gtk_widget_unparent (page->child);
|
||||||
|
|
||||||
tab_label = page->tab_label;
|
tab_label = page->tab_label;
|
||||||
|
if (tab_label)
|
||||||
|
{
|
||||||
g_object_ref (tab_label);
|
g_object_ref (tab_label);
|
||||||
gtk_notebook_remove_tab_label (notebook, page);
|
gtk_notebook_remove_tab_label (notebook, page);
|
||||||
if (destroying)
|
if (destroying)
|
||||||
gtk_widget_destroy (tab_label);
|
gtk_widget_destroy (tab_label);
|
||||||
g_object_unref (tab_label);
|
g_object_unref (tab_label);
|
||||||
|
}
|
||||||
|
|
||||||
if (notebook->menu)
|
if (notebook->menu)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user