diff options
author | Felipe Borges <felipeborges@gnome.org> | 2022-12-21 11:39:18 +0100 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-05-16 13:32:21 +0000 |
commit | d586df5c87597c3894419e73e724bcd782e9fc03 (patch) | |
tree | 9d15be8f775e9e4ed99efe2840d5248590c385da | |
parent | 00a71d46da7f2097e67873d250e5a3a389cc261c (diff) | |
download | gnome-control-center-d586df5c87597c3894419e73e724bcd782e9fc03.tar.gz |
user-accounts: Add a popover describing the autologin functionality
Fixes #2235
-rw-r--r-- | panels/user-accounts/cc-user-panel.c | 2 | ||||
-rw-r--r-- | panels/user-accounts/cc-user-panel.ui | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c index a779089a2..9da437a3d 100644 --- a/panels/user-accounts/cc-user-panel.c +++ b/panels/user-accounts/cc-user-panel.c @@ -44,6 +44,7 @@ #endif #include "cc-list-row.h" +#include "cc-list-row-info-button.h" #include "cc-add-user-dialog.h" #include "cc-avatar-chooser.h" #include "cc-language-chooser.h" @@ -1473,6 +1474,7 @@ cc_user_panel_init (CcUserPanel *self) type = cc_permission_infobar_get_type (); g_type_ensure (CC_TYPE_AVATAR_CHOOSER); g_type_ensure (CC_TYPE_LIST_ROW); + g_type_ensure (CC_TYPE_LIST_ROW_INFO_BUTTON); gtk_widget_init_template (GTK_WIDGET (self)); diff --git a/panels/user-accounts/cc-user-panel.ui b/panels/user-accounts/cc-user-panel.ui index 1e0e1d5b4..4304ad3f8 100644 --- a/panels/user-accounts/cc-user-panel.ui +++ b/panels/user-accounts/cc-user-panel.ui @@ -211,7 +211,13 @@ <property name="title" translatable="yes">A_utomatic Login</property> <property name="use_underline">True</property> <property name="activatable_widget">autologin_switch</property> - <child> + <child type="suffix"> + <object class="CcListRowInfoButton"> + <property name="valign">center</property> + <property name="text" translatable="yes">Automatic login opens the user account when the device starts, without requiring authentication. Authentication is still required at other times, such as when unlocking the screen.</property> + </object> + </child> + <child type="suffix"> <object class="GtkSwitch" id="autologin_switch"> <property name="valign">center</property> <signal name="notify::active" handler="autologin_changed" object="CcUserPanel" swapped="yes"/> |