[gnome-shell/uajain/adapt-user-avatar-part2: 80/84] loginDialog: Use text entry for username
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 80/84] loginDialog: Use text entry for username
- Date: Mon, 10 Feb 2020 18:46:04 +0000 (UTC)
commit 49a2d592c9b245ceb807787f83e26fd7bd060d17
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 6 17:30:36 2020 -0300
loginDialog: Use text entry for username
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
js/gdm/authPrompt.js | 4 ++--
js/gdm/loginDialog.js | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index d29414004b..f5650d3c4f 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -182,7 +182,7 @@ var AuthPrompt = GObject.registerClass({
this._defaultButtonWell.add_child(this._spinner);
}
- _updateEntry(secret) {
+ setSecret(secret) {
if (secret && this._entry !== this._passwordEntry) {
this._mainBox.replace_child(this._entry, this._passwordEntry);
this._entry = this._passwordEntry;
@@ -204,7 +204,7 @@ var AuthPrompt = GObject.registerClass({
return;
}
- this._updateEntry(secret);
+ this.setSecret(secret);
this.setQuestion(question);
this.updateSensitivity(true);
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index ab995d7034..02d6c5ef19 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -910,6 +910,7 @@ var LoginDialog = GObject.registerClass({
_askForUsernameAndBeginVerification() {
this._authPrompt.setUser(null);
+ this._authPrompt.setSecret(false);
this._authPrompt.setQuestion(_("Username"));
this._showRealmLoginHint(this._realmManager.loginFormat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]