aboutsummaryrefslogtreecommitdiff
path: root/src/greeter-list.vala
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-10-06 11:50:13 +0200
committerMihai Moldovan <ionic@ionic.de>2023-10-06 11:50:13 +0200
commitcab9f6acc55a464bbc10638d7cb186ab41c918d6 (patch)
treec3999fbfa0d1089c2774083aeb82436649f98cbf /src/greeter-list.vala
parentdf7825b0044a7c6be526e93a263f2f4f2c1143fa (diff)
parent622780a18b551efb05ea45719862c841c01ffe5d (diff)
downloadarctica-greeter-cab9f6acc55a464bbc10638d7cb186ab41c918d6.tar.gz
arctica-greeter-cab9f6acc55a464bbc10638d7cb186ab41c918d6.tar.bz2
arctica-greeter-cab9f6acc55a464bbc10638d7cb186ab41c918d6.zip
Merge branch 'sunweaver-mr/show-login-labels'
Attributes GH PR #76: https://github.com/ArcticaProject/arctica-greeter/pull/76
Diffstat (limited to 'src/greeter-list.vala')
-rw-r--r--src/greeter-list.vala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index 102c153..e39ac19 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -819,6 +819,8 @@ public abstract class GreeterList : FadableBox
protected virtual void show_prompt_cb (string text, LightDM.PromptType type)
{
+ var show_label_if_configured = false;
+
/* Notify the greeter on what user has been logged */
if (get_selected_id () == "*other" && manual_name == null)
{
@@ -831,9 +833,21 @@ public abstract class GreeterList : FadableBox
prompted = true;
if (text == "Password: ")
+ {
text = _("Password:");
+ show_label_if_configured = true;
+ }
if (text == "login:")
+ {
text = _("Username:");
+ show_label_if_configured = true;
+ }
+
+ if ((AGSettings.get_boolean(AGSettings.KEY_SHOW_LOGIN_LABELS)) && (show_label_if_configured))
+ {
+ show_message(text);
+ }
+
var entry = add_prompt (text, type == LightDM.PromptType.SECRET);
/* Limit the number of characters in case a cat is sitting on the keyboard... */