[Goodies-commits] r5137 - xfburn/trunk/xfburn

Jean-Francois Wauthy pollux at xfce.org
Fri Jul 18 16:06:27 CEST 2008


Author: pollux
Date: 2008-07-18 14:06:27 +0000 (Fri, 18 Jul 2008)
New Revision: 5137

Modified:
   xfburn/trunk/xfburn/xfburn-compositions-notebook.c
Log:
does not show Tabs if only the welcome tab is visible

Modified: xfburn/trunk/xfburn/xfburn-compositions-notebook.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-compositions-notebook.c	2008-07-18 13:45:53 UTC (rev 5136)
+++ xfburn/trunk/xfburn/xfburn-compositions-notebook.c	2008-07-18 14:06:27 UTC (rev 5137)
@@ -137,6 +137,8 @@
   composition = g_object_get_data (G_OBJECT (tab), "composition");
   page_num = gtk_notebook_page_num (notebook, composition);
   gtk_notebook_remove_page (notebook, page_num);
+
+  gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) > 1);
 }
 
 static void
@@ -188,6 +190,8 @@
 
     gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (notebook), composition, 1);
 	
+    gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) > 1);
+
     g_object_set_data (G_OBJECT (tab), "composition", composition);
     g_signal_connect (G_OBJECT (tab), "button-close-clicked", G_CALLBACK (cb_composition_close), notebook);
     
@@ -229,6 +233,8 @@
 
   gtk_widget_show (welcome_tab);
   gtk_notebook_append_page (GTK_NOTEBOOK (notebook), welcome_tab, label);
+
+  gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) > 1);
 }
 
 void




More information about the Goodies-commits mailing list