loginDialog: Rely on default button for activation
Currently the default action is performed twice when pressing Return in the login dialog, once in response to the entry's 'activate' signal, and again by activating the default button. Usually this is not a problem, as the second invocation is simply ignored, however it breaks the case where multiple consecutive questions are asked (e.g. username and password in the 'Not listed' case). Fix the problem by not handling the 'activate' signal at all. https://bugzilla.gnome.org/show_bug.cgi?id=685511
This commit is contained in:
parent
78e5d4df9d
commit
20d4ffde6e
@ -901,15 +901,6 @@ const LoginDialog = new Lang.Class({
|
||||
label: C_("button", "Sign In"),
|
||||
default: true }];
|
||||
|
||||
this._promptEntryActivateCallbackId = this._promptEntry.clutter_text.connect('activate',
|
||||
Lang.bind(this, function() {
|
||||
hold.release();
|
||||
}));
|
||||
hold.connect('release', Lang.bind(this, function() {
|
||||
this._promptEntry.clutter_text.disconnect(this._promptEntryActivateCallbackId);
|
||||
this._promptEntryActivateCallbackId = null;
|
||||
}));
|
||||
|
||||
let tasks = [function() {
|
||||
return this._fadeInPrompt();
|
||||
},
|
||||
@ -926,11 +917,6 @@ const LoginDialog = new Lang.Class({
|
||||
},
|
||||
|
||||
_hidePrompt: function() {
|
||||
if (this._promptEntryActivateCallbackId) {
|
||||
this._promptEntry.clutter_text.disconnect(this._promptEntryActivateCallbackId);
|
||||
this._promptEntryActivateCallbackId = null;
|
||||
}
|
||||
|
||||
this.setButtons([]);
|
||||
|
||||
let tasks = [function() {
|
||||
|
Loading…
Reference in New Issue
Block a user