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
This commit is contained in:
Adel Gadllah 2015-07-01 19:02:36 +02:00
parent 9ad104585d
commit feaf6108f9

View File

@ -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) {