From feaf6108f90df29241ef4d598f7ef965c6de6350 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 1 Jul 2015 19:02:36 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/windowAttentionHandler.js b/js/ui/windowAttentionHandler.js index d5e23d2f2..733103336 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) {