[gnome-shell] util: Fix no-more-messages signal



commit 952f58153f9bfba70dc84ca192b40a861061df79
Author: Ray Strode <rstrode redhat com>
Date:   Wed Jul 17 13:06:10 2013 -0400

    util: Fix no-more-messages signal
    
    Now thas hasPendingMessages is fixed, we need to also fix the associated
    signal "no-more-messages"
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704347

 js/gdm/util.js |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index c79958d..04b2d49 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -167,11 +167,11 @@ const ShellUserVerifier = new Lang.Class({
             this._clearMessageQueue();
             this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null);
         } else {
-            let signalId = this._userVerifier.connect('no-more-messages',
-                                                      Lang.bind(this, function() {
-                                                          this._userVerifier.disconnect(signalId);
-                                                          this._userVerifier.call_answer_query(serviceName, 
answer, this._cancellable, null);
-                                                      }));
+            let signalId = this.connect('no-more-messages',
+                                        Lang.bind(this, function() {
+                                            this.disconnect(signalId);
+                                            this._userVerifier.call_answer_query(serviceName, answer, 
this._cancellable, null);
+                                        }));
         }
     },
 
@@ -426,21 +426,21 @@ const ShellUserVerifier = new Lang.Class({
             if (!this.hasPendingMessages) {
                 this._retry();
             } else {
-                let signalId = this._userVerifier.connect('no-more-messages',
-                                                          Lang.bind(this, function() {
-                                                              this._userVerifier.disconnect(signalId);
-                                                              this._retry();
-                                                          }));
+                let signalId = this.connect('no-more-messages',
+                                            Lang.bind(this, function() {
+                                                this.disconnect(signalId);
+                                                this._retry();
+                                            }));
             }
         } else {
             if (!this.hasPendingMessages) {
                 this._cancelAndReset();
             } else {
-                let signalId = this._userVerifier.connect('no-more-messages',
-                                                          Lang.bind(this, function() {
-                                                              this._userVerifier.disconnect(signalId);
-                                                              this._cancelAndReset();
-                                                          }));
+                let signalId = this.connect('no-more-messages',
+                                            Lang.bind(this, function() {
+                                                this.disconnect(signalId);
+                                                this._cancelAndReset();
+                                            }));
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]