[gnome-shell/wip/wayland-gdm-cleanup: 10/19] gdm: Remove params from AuthPrompt.begin();
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/wayland-gdm-cleanup: 10/19] gdm: Remove params from AuthPrompt.begin();
- Date: Sat, 8 Mar 2014 00:26:06 +0000 (UTC)
commit b978d99820e942e89a5aee700ae3b0f00bcd91d3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 7 17:25:45 2014 -0500
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 8ac4aa4..6df25a7 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 99c3030..0dd400a 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 06966a3..b04ddf0 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]