From b978d99820e942e89a5aee700ae3b0f00bcd91d3 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 7 Mar 2014 17:25:45 -0500 Subject: [PATCH] gdm: Remove params from AuthPrompt.begin(); It's just one parameter now. --- js/gdm/authPrompt.js | 6 ++---- js/gdm/loginDialog.js | 4 ++-- js/ui/unlockDialog.js | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 8ac4aa48a..6df25a79b 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -471,12 +471,10 @@ const AuthPrompt = new Lang.Class({ this._entry.clutter_text.insert_unichar(unichar); }, - begin: function(params) { - params = Params.parse(params, { userName: null }); - + begin: function(userName) { this.updateSensitivity(false); - this._userVerifier.begin(params.userName); + this._userVerifier.begin(userName); this.verificationStatus = AuthPromptStatus.VERIFYING; }, diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 99c303000..0dd400a8a 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -625,7 +625,7 @@ const LoginDialog = new Lang.Class({ this._user = this._userManager.get_user(answer); this._authPrompt.clear(); this._authPrompt.startSpinning(); - this._authPrompt.begin({ userName: answer }); + this._authPrompt.begin(answer); this._updateCancelButton(); realmManager.disconnect(realmSignalId) @@ -823,7 +823,7 @@ const LoginDialog = new Lang.Class({ this._authPrompt.setUser(item.user); let userName = item.user.get_user_name(); - this._authPrompt.begin({ userName: userName }); + this._authPrompt.begin(userName); }, _onUserListActivated: function(activatedItem) { diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 06966a30f..b04ddf092 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -109,7 +109,7 @@ const UnlockDialog = new Lang.Class({ userName = null; } - this._authPrompt.begin({ userName: userName }); + this._authPrompt.begin(userName); }, _escape: function() {