[Goodies-commits] r2866 - xfce4-cddrive-plugin/trunk/panel-plugin

Sylvain Reynal syl at xfce.org
Wed Jun 27 05:33:01 CEST 2007


Author: syl
Date: 2007-06-27 03:33:01 +0000 (Wed, 27 Jun 2007)
New Revision: 2866

Modified:
   xfce4-cddrive-plugin/trunk/panel-plugin/cddrive-dialogs.c
Log:
small visual config panel change: remove separator between sections, increase padding from 5 to 7 instead

Modified: xfce4-cddrive-plugin/trunk/panel-plugin/cddrive-dialogs.c
===================================================================
--- xfce4-cddrive-plugin/trunk/panel-plugin/cddrive-dialogs.c	2007-06-27 03:00:29 UTC (rev 2865)
+++ xfce4-cddrive-plugin/trunk/panel-plugin/cddrive-dialogs.c	2007-06-27 03:33:01 UTC (rev 2866)
@@ -33,7 +33,7 @@
 #define CDDRIVE_COPYRIGHT_YEARS  "2007"
 #define CDDRIVE_COPYRIGHT_OWNERS "The Xfce development team. All rights reserved."
 
-#define CDDRIVE_SECTION_PADDING             5
+#define CDDRIVE_SECTION_PADDING             7
 #define CDDRIVE_SECTION_VBOX_SPACING        5
 #define CDDRIVE_SECTION_VBOX_PADDING        5
 #define CDDRIVE_VBOX_SPACING                5
@@ -308,18 +308,13 @@
 static GtkBox*
 cddrive_create_section_vbox (CddrivePlugin *cddrive,
                              GtkDialog     *dialog,
-                             gchar         *title,
-                             gboolean       add_separator)
+                             gchar         *title)
 {
   GtkWidget *res, *frm;
 
   res = gtk_vbox_new (FALSE, CDDRIVE_SECTION_VBOX_SPACING);
   frm = xfce_create_framebox_with_content (title, res);
 
-  if (add_separator)
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), gtk_hseparator_new (),
-                        FALSE, FALSE, 0);
-    
   gtk_box_pack_start (GTK_BOX (dialog->vbox), frm,
                       FALSE, FALSE, CDDRIVE_SECTION_PADDING);
   return GTK_BOX (res);
@@ -483,7 +478,7 @@
   
 
   /* --- "Drive" section  --- */
-  section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Drive"), FALSE);
+  section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Drive"));
   
   /* get infos (device path and model) for all detected CD-ROM drives */
   drv_infos = cddrive_cdrom_drive_infos_new (&err);
@@ -548,7 +543,7 @@
     
 
       /* --- "Commands" section --- */    
-      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Fallback Commands"), TRUE);
+      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Fallback Commands"));
       table = gtk_table_new (2, 2, FALSE);
       gtk_box_pack_start (section_vbox, table,
                           FALSE, FALSE, CDDRIVE_SECTION_VBOX_PADDING);
@@ -559,7 +554,7 @@
       /* --- "Display" section --- */
     
       /* -- name config -- */
-      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Display"), TRUE);
+      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Display"));
     
       hbox = gtk_hbox_new (FALSE, 0);
       gtk_box_pack_start (section_vbox, hbox, FALSE, FALSE, 0);
@@ -646,7 +641,7 @@
 
 #if defined (HAVE_LIBCDIO) && defined (HAVE_LIBCDDB)
       /* --- Network section --- */
-      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Network"), TRUE);
+      section_vbox = cddrive_create_section_vbox (cddrive, dialog, _("Network"));
       
       /* -- CDDB config -- */
       button = gtk_check_button_new_with_label (_("Allow freedb.org connections"));




More information about the Goodies-commits mailing list