[gnome-control-center/wip/feborges/user-accounts-ui-improvements: 4/4] user-accounts: Rename "Automatic Login" to "Login Authentication"



commit 6dd9d53c76c5cf504df38e80b13c4f2c294ce4cc
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Jan 14 12:39:51 2020 +0100

    user-accounts: Rename "Automatic Login" to "Login Authentication"
    
    This also inverts the boolean action because automatic login ON
    means login authentication OFF and vice-versa.
    
    According to the mockups at
    https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/users/users.png
    
    Fixes #771

 panels/user-accounts/cc-user-panel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index a89cb1ebd..206c82023 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -728,7 +728,7 @@ autologin_changed (CcUserPanel *self)
         gboolean active;
         ActUser *user;
 
-        active = gtk_switch_get_active (self->autologin_switch);
+        active = !gtk_switch_get_active (self->autologin_switch);
         user = get_selected_user (self);
 
         if (active != act_user_get_automatic_login (user)) {
@@ -825,7 +825,7 @@ show_user (ActUser *user, CcUserPanel *self)
         gtk_widget_set_sensitive (GTK_WIDGET (self->password_button_label), enable);
 
         g_signal_handlers_block_by_func (self->autologin_switch, autologin_changed, self);
-        gtk_switch_set_active (self->autologin_switch, act_user_get_automatic_login (user));
+        gtk_switch_set_active (self->autologin_switch, !act_user_get_automatic_login (user));
         g_signal_handlers_unblock_by_func (self->autologin_switch, autologin_changed, self);
         gtk_widget_set_sensitive (GTK_WIDGET (self->autologin_switch), get_autologin_possible (user));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]