notificationDaemon: Store tray-icon-added/removed ids

This allows extensions to reuse the trayManager.
This commit is contained in:
Adel Gadllah 2012-10-06 16:10:03 +02:00
parent 6dab119650
commit 17e70ff8ec

View File

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