[gnome-shell/uajain/adapt-user-avatar-part2: 80/81] loginDialog: Use text entry for username



commit 26b9714e41e6aa460e01c9f66b68becc2f5629e4
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]