aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClement Lefebvre <clement.lefebvre@linuxmint.com>2023-01-13 12:57:13 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:08:33 +0100
commit499274f3da9d7adc0e9c42ce3bf6f9bd0a571128 (patch)
treea35517a96917af49c3495a6b3c684a6cf2679f1d /src
parent52aa64b64c3485d580385aba6e6123e5950908bd (diff)
downloadarctica-greeter-499274f3da9d7adc0e9c42ce3bf6f9bd0a571128.tar.gz
arctica-greeter-499274f3da9d7adc0e9c42ce3bf6f9bd0a571128.tar.bz2
arctica-greeter-499274f3da9d7adc0e9c42ce3bf6f9bd0a571128.zip
orca: Fix wrong a11y text for username prompt.
Ported from Slick Greeter ported by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/dfe45aa7c7171ca58a35e6f337f805ad447c8906
Diffstat (limited to 'src')
-rw-r--r--src/greeter-list.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index 98c8b48..dc41a8f 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -295,8 +295,12 @@ public abstract class GreeterList : FadableBox
}
string accessible_text = null;
- if (selected_entry != null && selected_entry.label != null)
- accessible_text = _("Enter password for %s").printf (selected_entry.label);
+ if (selected_entry != null && selected_entry.label != null) {
+ if (secret)
+ accessible_text = _("Enter password for %s").printf (selected_entry.label);
+ else
+ accessible_text = _("Enter your username");
+ }
var prompt = selected_entry.add_prompt (text, accessible_text, secret);
if (mode != Mode.SCROLLING)