[gnome-control-center] Add horizontal separators between sections
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Add horizontal separators between sections
- Date: Tue, 1 May 2012 18:10:31 +0000 (UTC)
commit e924ea03fa6c3621bdcf17e629d6b1383156c3dd
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 5e7b449..da189f7 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -673,6 +673,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]