From 528dc5a0464bed2d243915f53118180b91d2ba78 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 16 Oct 2006 16:43:31 +0000 Subject: Forgot to add these --- (limited to 'shell') 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) -- cgit v0.9.1