[gnome-shell] windowAttentionHandler: Allow extensions to disconnect the signal



commit feaf6108f90df29241ef4d598f7ef965c6de6350
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Jul 1 19:02:36 2015 +0200

    windowAttentionHandler: Allow extensions to disconnect the signal
    
    That way extensions can easily disable / remove the "is ready"
    notification.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748846

 js/ui/windowAttentionHandler.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/windowAttentionHandler.js b/js/ui/windowAttentionHandler.js
index d5e23d2..7331033 100644
--- a/js/ui/windowAttentionHandler.js
+++ b/js/ui/windowAttentionHandler.js
@@ -11,7 +11,8 @@ const WindowAttentionHandler = new Lang.Class({
 
     _init : function() {
         this._tracker = Shell.WindowTracker.get_default();
-        global.display.connect('window-demands-attention', Lang.bind(this, this._onWindowDemandsAttention));
+        this._windowDemandsAttentionId = global.display.connect('window-demands-attention',
+                                                                                                             
                   Lang.bind(this, this._onWindowDemandsAttention));
     },
 
     _getTitleAndBanner: function(app, window) {


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