Permalink
Browse files

Don't try to display an egg.trayicon if we don't know its size yet

  • Loading branch information...
multani committed Jun 22, 2011
1 parent fdbd318 commit 13da1a22122fea34778683f6a81e881c7a667024
Showing with 5 additions and 0 deletions.
  1. +5 −0 sonata/tray.py
View
@@ -227,6 +227,11 @@ def is_available(self):
return True
def _set_tray_image(self):
+ if self.eggtrayheight is None:
+ # The tray height has not been computed yet, so we can't display the
+ # tray icon yet.
+ return
+
self.trayimage.set_from_pixbuf(
img.get_pixbuf_of_size(
gtk.gdk.pixbuf_new_from_file(self.eggtrayfile),

0 comments on commit 13da1a2

Please sign in to comment.