Do not manually create empty label

gtk_notebook_update_labels will take care of creating it if needed.
This commit is contained in:
Paolo Borelli 2011-06-26 21:32:45 +02:00
parent bd26ce1db6
commit 508353fd15

View File

@ -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;