[gnome-control-center/wip/feborges/new-users-panel] user-accounts: Do not show autologin option when it is impossible
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel] user-accounts: Do not show autologin option when it is impossible
- Date: Wed, 13 Jul 2016 09:54:07 +0000 (UTC)
commit 02a9569acd823ffe70d5342c12b80a5031d59def
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Jul 13 11:48:26 2016 +0200
user-accounts: Do not show autologin option when it is impossible
The autologin feature is not supported for non-local users and
users without password.
panels/user-accounts/um-user-panel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index ab83d44..cae0a82 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -747,7 +747,6 @@ show_user (ActUser *user, CcUserPanelPrivate *d)
g_signal_handlers_block_by_func (widget, autologin_changed, d);
gtk_switch_set_active (GTK_SWITCH (widget), act_user_get_automatic_login (user));
g_signal_handlers_unblock_by_func (widget, autologin_changed, d);
- gtk_widget_set_sensitive (widget, get_autologin_possible (user));
widget = get_widget (d, "account-language-button");
@@ -779,7 +778,7 @@ show_user (ActUser *user, CcUserPanelPrivate *d)
/* Autologin: show when local account */
widget = get_widget (d, "autologin-switch");
label = get_widget (d, "autologin-label");
- show = act_user_is_local_account (user);
+ show = act_user_is_local_account (user) && get_autologin_possible (user);
gtk_widget_set_visible (widget, show);
gtk_widget_set_visible (label, show);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]