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



commit acde082435f79c97c5f2bee7ba4bdd48323ece1b
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 ++--
 panels/user-accounts/cc-user-panel.ui | 2 +-
 2 files changed, 3 insertions(+), 3 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));
 
diff --git a/panels/user-accounts/cc-user-panel.ui b/panels/user-accounts/cc-user-panel.ui
index c418d5702..555aaacae 100644
--- a/panels/user-accounts/cc-user-panel.ui
+++ b/panels/user-accounts/cc-user-panel.ui
@@ -446,7 +446,7 @@
                                     <child>
                                       <object class="GtkLabel">
                                         <property name="visible">True</property>
-                                        <property name="label" translatable="yes">A_utomatic Login</property>
+                                        <property name="label" translatable="yes">Login 
A_uthentication</property>
                                         <property name="use_underline">True</property>
                                         <property name="mnemonic_widget">autologin_switch</property>
                                       </object>


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