aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/greeter-list.vala14
-rw-r--r--src/settings.vala1
2 files changed, 15 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... */
diff --git a/src/settings.vala b/src/settings.vala
index b870bd2..efc72f2 100644
--- a/src/settings.vala
+++ b/src/settings.vala
@@ -33,6 +33,7 @@ public class AGSettings : Object
public const string KEY_DRAW_USER_BACKGROUNDS = "draw-user-backgrounds";
public const string KEY_DRAW_GRID = "draw-grid";
public const string KEY_SHOW_HOSTNAME = "show-hostname";
+ public const string KEY_SHOW_LOGIN_LABELS = "show-login-labels";
public const string KEY_LOGO = "logo";
public const string KEY_LOGO_ALPHA = "logo-alpha";
public const string KEY_THEME_NAME = "theme-name";