[gnome-control-center] Add horizontal separators between sections



commit 620e70113c30b0ae868577153dda60139f3c20b4
Author: Jon McCann <jmccann redhat com>
Date:   Tue Apr 10 16:55:26 2012 -0400

    Add horizontal separators between sections
    
    Based on patch from Ubuntu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673869

 shell/gnome-control-center.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 2fbe45b..7543341 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -661,6 +661,16 @@ maybe_add_category_view (GnomeControlCenter *shell,
   if (g_hash_table_lookup (shell->priv->category_views, name) != NULL)
     return;
 
+  if (g_hash_table_size (shell->priv->category_views) > 0)
+    {
+      GtkWidget *separator;
+      separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
+      gtk_widget_set_margin_top (separator, 11);
+      gtk_widget_set_margin_bottom (separator, 10);
+      gtk_box_pack_start (GTK_BOX (shell->priv->main_vbox), separator, FALSE, FALSE, 0);
+      gtk_widget_show (separator);
+    }
+
   /* create new category view for this category */
   filter = gtk_tree_model_filter_new (GTK_TREE_MODEL (shell->priv->store),
                                       NULL);



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