[gnome-shell/wip/wayland-gdm-cleanup: 13/19] gdm: Remove the (partially) unused cancelled signal
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/wayland-gdm-cleanup: 13/19] gdm: Remove the (partially) unused cancelled signal
- Date: Sat, 8 Mar 2014 00:26:21 +0000 (UTC)
commit 0c511c884bf7cbcc7cc28848a68a3ee00d33186e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 7 17:39:15 2014 -0500
gdm: Remove the (partially) unused cancelled signal
When we emit the 'cancelled' signal if we were previously verifying,
we'll always emit a 'failed' signal. LoginDialog doesn't care about
cancelled, only UnlockDialog cares about both, but it does the same
thing for both, so there's no reason to have the extra signal.
js/gdm/authPrompt.js | 1 -
js/ui/unlockDialog.js | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 6df25a7..d028052 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -493,7 +493,6 @@ const AuthPrompt = new Lang.Class({
cancel: function() {
this.reset();
- this.emit('cancelled');
}
});
Signals.addSignalMethods(AuthPrompt.prototype);
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index b04ddf0..001aabc 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -53,7 +53,6 @@ const UnlockDialog = new Lang.Class({
this._authPrompt = new AuthPrompt.AuthPrompt(new Gdm.Client(),
AuthPrompt.AuthPromptMode.UNLOCK_ONLY);
this._authPrompt.connect('failed', Lang.bind(this, this._fail));
- this._authPrompt.connect('cancelled', Lang.bind(this, this._fail));
this._authPrompt.connect('reset', Lang.bind(this, this._onReset));
this._authPrompt.setPasswordChar('\u25cf');
this._authPrompt.nextButton.label = _("Unlock");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]