[Sugar-devel] [PATCH sugar] Do not cache the buddy palette in friends tray, SL #3108
Simon Schampijer
simon at schampijer.de
Mon Sep 19 07:59:26 EDT 2011
Make the palette on demand as well
Signed-off-by: Simon Schampijer <simon at laptop.org>
---
src/jarabe/frame/friendstray.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/jarabe/frame/friendstray.py b/src/jarabe/frame/friendstray.py
index 4055340..ee5f815 100644
--- a/src/jarabe/frame/friendstray.py
+++ b/src/jarabe/frame/friendstray.py
@@ -30,10 +30,15 @@ class FriendIcon(TrayIcon):
TrayIcon.__init__(self, icon_name='computer-xo',
xo_color=buddy.get_color())
+ self._buddy = buddy
self.set_palette_invoker(FrameWidgetInvoker(self))
- self.palette = BuddyMenu(buddy)
- self.palette.props.icon_visible = False
- self.palette.set_group_id('frame')
+ #self.palette_invoker.cache_palette = False
+
+ def create_palette(self):
+ palette = BuddyMenu(self._buddy)
+ palette.props.icon_visible = False
+ palette.set_group_id('frame')
+ return palette
class FriendsTray(VTray):
--
1.7.4.4
More information about the Sugar-devel
mailing list