From 17e70ff8ece4357c6f4f063a77d5b0f65e0f4a5e Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 6 Oct 2012 16:10:03 +0200 Subject: [PATCH] notificationDaemon: Store tray-icon-added/removed ids This allows extensions to reuse the trayManager. --- js/ui/notificationDaemon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 2e800b3a4..6d2fd6d89 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -116,8 +116,8 @@ const NotificationDaemon = new Lang.Class({ this._busProxy = new Bus(); 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)); Shell.WindowTracker.get_default().connect('notify::focus-app', Lang.bind(this, this._onFocusAppChanged));