always use statusicon in systray, not event icon, we already blink.

This commit is contained in:
Yann Leboulanger 2009-11-25 08:27:06 +01:00
parent c5843e8878
commit ddb493c87d
1 changed files with 4 additions and 6 deletions

View File

@ -106,14 +106,12 @@ class StatusIcon:
if not gajim.interface.systray_enabled:
return
if gajim.events.get_nb_systray_events():
state = 'event'
self.status_icon.set_blinking(True)
else:
state = self.status
self.status_icon.set_blinking(False)
# FIXME: do not always use 16x16 (ask actually used size and use that)
image = gajim.interface.jabber_state_images['16'][state]
image = gajim.interface.jabber_state_images['16'][self.status]
if image.get_storage_type() == gtk.IMAGE_PIXBUF:
self.status_icon.set_from_pixbuf(image.get_pixbuf())
# FIXME: oops they forgot to support GIF animation?