Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame/notificationtray.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/view/frame/notificationtray.py')
-rw-r--r--shell/view/frame/notificationtray.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/view/frame/notificationtray.py b/shell/view/frame/notificationtray.py
index 1a6986c..5fa5123 100644
--- a/shell/view/frame/notificationtray.py
+++ b/shell/view/frame/notificationtray.py
@@ -8,7 +8,11 @@ class NotificationTray(gtk.HBox):
self._manager = TrayManager()
self._manager.connect('tray-icon-added', self._icon_added_cb)
+ self._manager.connect('tray-icon-removed', self._icon_removed_cb)
self._manager.manage_screen(gtk.gdk.screen_get_default())
def _icon_added_cb(self, manager, icon):
self.pack_start(icon, False)
+
+ def _icon_removed_cb(self, manager, icon):
+ icon.destroy()