From 499274f3da9d7adc0e9c42ce3bf6f9bd0a571128 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Fri, 13 Jan 2023 12:57:13 +0000 Subject: orca: Fix wrong a11y text for username prompt. Ported from Slick Greeter ported by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/dfe45aa7c7171ca58a35e6f337f805ad447c8906 --- src/greeter-list.vala | 8 ++++++-- 1 file 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) -- cgit v1.2.3