[gnome-shell] util: Fix hasPendingMessages
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] util: Fix hasPendingMessages
- Date: Tue, 16 Jul 2013 20:55:03 +0000 (UTC)
commit a8fe063726b6136ebb71cb372b3bfee399f04662
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jul 16 15:48:27 2013 -0400
util: Fix hasPendingMessages
While the UserVerifier does indeed have a _userVerifier inside
it, the hasPendingMessages property is on ourselves, not
_userVerifier.
https://bugzilla.gnome.org/show_bug.cgi?id=704347
js/gdm/util.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index cae3e1b..c79958d 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -163,7 +163,7 @@ const ShellUserVerifier = new Lang.Class({
},
answerQuery: function(serviceName, answer) {
- if (!this._userVerifier.hasPendingMessages) {
+ if (!this.hasPendingMessages) {
this._clearMessageQueue();
this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null);
} else {
@@ -423,7 +423,7 @@ const ShellUserVerifier = new Lang.Class({
this._failCounter < this._settings.get_int(ALLOWED_FAILURES_KEY);
if (canRetry) {
- if (!this._userVerifier.hasPendingMessages) {
+ if (!this.hasPendingMessages) {
this._retry();
} else {
let signalId = this._userVerifier.connect('no-more-messages',
@@ -433,7 +433,7 @@ const ShellUserVerifier = new Lang.Class({
}));
}
} else {
- if (!this._userVerifier.hasPendingMessages) {
+ if (!this.hasPendingMessages) {
this._cancelAndReset();
} else {
let signalId = this._userVerifier.connect('no-more-messages',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]