[gnome-control-center/users-show-autologin-row-when-locked: 70/70] user-accounts: Show "automatic login" option when locked
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/users-show-autologin-row-when-locked: 70/70] user-accounts: Show "automatic login" option when locked
- Date: Wed, 3 Aug 2022 09:40:01 +0000 (UTC)
commit c381c633af86beebbf15ba9b5971555c3dee2810
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Jul 4 11:32:43 2022 +0200
user-accounts: Show "automatic login" option when locked
It should be made insensitive when the panel is locked, and sensitive
when locked.
We only hide this row for non-local users, where this setting doesn't
make much sense.
Fixes #1944
panels/user-accounts/cc-user-panel.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index 6b750d926..52c15b5e0 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -1307,7 +1307,10 @@ on_permission_changed (CcUserPanel *self)
gtk_widget_set_visible (GTK_WIDGET (self->account_type_row), TRUE);
}
- gtk_widget_set_visible (GTK_WIDGET (self->autologin_row), get_autologin_possible (user));
+ if (get_autologin_possible (user)) {
+ gtk_widget_set_visible (GTK_WIDGET (self->autologin_row), TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (self->autologin_row), TRUE);
+ }
}
else {
gtk_widget_set_visible (GTK_WIDGET (self->account_type_row), FALSE);
@@ -1316,7 +1319,7 @@ on_permission_changed (CcUserPanel *self)
} else {
gtk_widget_set_visible (GTK_WIDGET (self->account_type_row), TRUE);
}
- gtk_widget_set_visible (GTK_WIDGET (self->autologin_row), FALSE);
+ gtk_widget_set_sensitive (GTK_WIDGET (self->autologin_row), FALSE);
add_unlock_tooltip (GTK_WIDGET (self->autologin_row));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]