[gnome-control-center/wip/feborges/user-accounts-ui-improvements] user-accounts: Rename "Automatic Login" to "Login Authentication"
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/user-accounts-ui-improvements] user-accounts: Rename "Automatic Login" to "Login Authentication"
- Date: Tue, 14 Jan 2020 12:12:42 +0000 (UTC)
commit 17caa1a136fb97ff826e7bb9fb9c62b77422e2b0
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 837b60dd6..e6c0fe5c7 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]