[gtk+] Do not manually create empty label



commit 508353fd153c8da36734809270ef21f6ce829e1a
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jun 26 21:32:45 2011 +0200

    Do not manually create empty label
    
    gtk_notebook_update_labels will take care of creating it if needed.

 gtk/gtknotebook.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index cd19175..9c7ece5 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4528,8 +4528,6 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
   if (!tab_label)
     {
       page->default_tab = TRUE;
-      if (priv->show_tabs)
-        tab_label = gtk_label_new (NULL);
     }
   page->tab_label = tab_label;
   page->menu_label = menu_label;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]