Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame^] | 1 | From f6b8e141e00c4837239f5b69af4e7bee1204abba Mon Sep 17 00:00:00 2001 |
| 2 | From: Kai Kang <kai.kang@windriver.com> |
| 3 | Date: Thu, 17 Dec 2020 10:18:58 +0800 |
| 4 | Subject: [PATCH 1/8] greeter: set visible when switch to input user |
| 5 | |
| 6 | It switches back to input user entry if press Esc key when input the |
| 7 | password. At this time, the user name input is shown as '*' rather than |
| 8 | plain text. Set the visibility to fix this issue. And clean the text as |
| 9 | well. |
| 10 | |
| 11 | Upstream-Status: Submitted [https://sourceforge.net/p/lxdm/code/merge-requests/1/] |
| 12 | |
| 13 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 14 | --- |
| 15 | src/greeter.c | 2 ++ |
| 16 | 1 file changed, 2 insertions(+) |
| 17 | |
| 18 | diff --git a/src/greeter.c b/src/greeter.c |
| 19 | index 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 | -- |
| 32 | 2.25.1 |
| 33 | |