From 5f6aba7f4b80f16a2a9f75797e450df53a7492df Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 6 Mar 2015 13:47:47 +0100 Subject: [PATCH] legacyTray: Allow extensions to hijack the tray-icon-added/removed signals --- js/ui/legacyTray.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js index a167ea234..f3d8613a0 100644 --- a/js/ui/legacyTray.js +++ b/js/ui/legacyTray.js @@ -85,8 +85,8 @@ const LegacyTray = new Lang.Class({ Main.layoutManager.trackChrome(this._slider, { affectsInputRegion: true }); this._trayManager = new Shell.TrayManager(); - this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); - this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); + this._trayIconAddedId = this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); + this._trayIconRemovedId = this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); this._trayManager.manage_screen(global.screen, this.actor); Main.overview.connect('showing', Lang.bind(this,