[gnome-system-tools/gnome-2-28] Force showing system groups



commit 5856115344073e61d3a4a4bdf446c0d6323f3a55
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Oct 5 11:29:28 2009 +0200

    Force showing system groups
    
    The GConf "showall" option applies to both system users and system groups. It was not working in previous releases because of some hidden bug, and we actually need to show system groups independently of system users being hidden. This is a temporary hack to fix a regression, waiting for a more complete change in master.

 src/users/groups-table.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/users/groups-table.c b/src/users/groups-table.c
index eea670d..a526360 100644
--- a/src/users/groups-table.c
+++ b/src/users/groups-table.c
@@ -55,6 +55,11 @@ add_group_columns (GtkTreeView *treeview)
 static gboolean
 groups_model_filter (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
 {
+	/* Temporary hack to show system groups without forcing to show system users,
+	 * which would make the users list quite messy */
+	return TRUE;
+
+#if 0
 	GstUsersTool *tool = (GstUsersTool *) data;
 	gint gid;
 
@@ -66,6 +71,7 @@ groups_model_filter (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
 		(gid == 0 ||
 		 (gid >= tool->minimum_gid &&
 		  gid <= tool->maximum_gid)));
+#endif
 }
 
 static GtkTreeModel*



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