Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-16 16:43:31 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-16 16:43:31 (GMT)
commit528dc5a0464bed2d243915f53118180b91d2ba78 (patch)
treef8c4c77610f95555693c60ad041b4847bc45a5e8 /shell
parent5e503f77d12baee7c8d97e4641d982da1c77c0ac (diff)
Forgot to add these
Diffstat (limited to 'shell')
-rw-r--r--shell/view/frame/notificationtray.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/view/frame/notificationtray.py b/shell/view/frame/notificationtray.py
new file mode 100644
index 0000000..1a6986c
--- /dev/null
+++ b/shell/view/frame/notificationtray.py
@@ -0,0 +1,14 @@
+import gtk
+
+from _sugar import TrayManager
+
+class NotificationTray(gtk.HBox):
+ def __init__(self):
+ gtk.HBox.__init__(self)
+
+ self._manager = TrayManager()
+ self._manager.connect('tray-icon-added', self._icon_added_cb)
+ self._manager.manage_screen(gtk.gdk.screen_get_default())
+
+ def _icon_added_cb(self, manager, icon):
+ self.pack_start(icon, False)