[gnome-system-tools/users-ui-redesign] Force listing system groups



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

    Force listing system groups
    
    The GConf "showall" option applies to both system users and system groups. This was not working in previous releases because of some hidden bug, and we actually need to show system groups independently of system users. 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]