blob: e01dc7fa7c490de967c65510a70b4227a4d0922c [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001From f6b8e141e00c4837239f5b69af4e7bee1204abba Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Thu, 17 Dec 2020 10:18:58 +0800
4Subject: [PATCH 1/8] greeter: set visible when switch to input user
5
6It switches back to input user entry if press Esc key when input the
7password. At this time, the user name input is shown as '*' rather than
8plain text. Set the visibility to fix this issue. And clean the text as
9well.
10
11Upstream-Status: Submitted [https://sourceforge.net/p/lxdm/code/merge-requests/1/]
12
13Signed-off-by: Kai Kang <kai.kang@windriver.com>
14---
15 src/greeter.c | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/src/greeter.c b/src/greeter.c
19index 2c6e5be..f100c72 100644
20--- a/src/greeter.c
21+++ b/src/greeter.c
22@@ -139,6 +139,8 @@ static void switch_to_input_user(void)
23 pass=NULL;
24 }
25 gtk_label_set_text( GTK_LABEL(prompt), _("User:"));
26+ gtk_entry_set_text(GTK_ENTRY(login_entry), "");
27+ gtk_entry_set_visibility(GTK_ENTRY(login_entry), TRUE);
28 gtk_widget_show(prompt);
29 if(user_list)
30 {
31--
322.25.1
33