[gnome-control-center] user-accounts: do not display system accounts
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: do not display system accounts
- Date: Mon, 15 Jul 2013 10:38:43 +0000 (UTC)
commit 26c44b2221786b9f9711cbf4240ce3a23ce771f3
Author: Philippe Coval <philippe coval eurogiciel fr>
Date: Tue Jun 25 16:07:51 2013 +0200
user-accounts: do not display system accounts
This prevents the user panel from displaying system accounts
and allowing the user to remove them.
https://bugzilla.gnome.org/show_bug.cgi?id=701514
panels/user-accounts/um-user-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 464821d..ee61e4c 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -149,6 +149,10 @@ user_added (ActUserManager *um, ActUser *user, CcUserPanelPrivate *d)
GtkTreeSelection *selection;
gint sort_key;
+ if (act_user_is_system_account (user)) {
+ return;
+ }
+
g_debug ("user added: %d %s\n", act_user_get_uid (user), get_real_or_user_name (user));
widget = get_widget (d, "list-treeview");
model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]