[gnome-control-center/gnome-3-8] user-accounts: do not display system accounts
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] user-accounts: do not display system accounts
- Date: Mon, 15 Jul 2013 10:38:38 +0000 (UTC)
commit 2a9463cc9b97a0cb9936e2997be60baae4314ba7
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 3246a0f..e3dd8f4 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]