[gnome-system-tools] Always show current user in list
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Always show current user in list
- Date: Sat, 13 Feb 2010 10:51:55 +0000 (UTC)
commit 5428eed7e241f0da05b4b9a67c21afd2d032843c
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Feb 13 11:18:30 2010 +0100
Always show current user in list
Even if the current user would normally not be shown because its UID it not in the range, add it to the list. This ensures the list will never be empty, and is what you normally expect.
src/users/users-table.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/users/users-table.c b/src/users/users-table.c
index df41cad..1825dd9 100644
--- a/src/users/users-table.c
+++ b/src/users/users-table.c
@@ -82,7 +82,8 @@ users_model_filter (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
show = (tool->showall
|| (oobs_user_is_root (user) && tool->showroot)
- || (uid >= tool->minimum_uid && uid <= tool->maximum_uid));
+ || (uid >= tool->minimum_uid && uid <= tool->maximum_uid)
+ || oobs_self_config_is_user_self (OOBS_SELF_CONFIG (tool->self_config), user));
g_object_unref (user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]