gdm: Remove params from AuthPrompt.begin();

It's just one parameter now.
This commit is contained in:
Jasper St. Pierre 2014-03-07 17:25:45 -05:00
parent 6d8d094e0c
commit b978d99820
3 changed files with 5 additions and 7 deletions

View File

@ -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;
},

View File

@ -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) {

View File

@ -109,7 +109,7 @@ const UnlockDialog = new Lang.Class({
userName = null;
}
this._authPrompt.begin({ userName: userName });
this._authPrompt.begin(userName);
},
_escape: function() {