From ddb493c87d505071bab147a479d1fc1075239715 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 25 Nov 2009 08:27:06 +0100 Subject: [PATCH] always use statusicon in systray, not event icon, we already blink. --- src/statusicon.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/statusicon.py b/src/statusicon.py index e161d18a4..e28b67cfd 100644 --- a/src/statusicon.py +++ b/src/statusicon.py @@ -106,18 +106,16 @@ 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] + # FIXME: do not always use 16x16 (ask actually used size and use that) + 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? - #or they were lazy to get it to work under Windows! WTF! + # FIXME: oops they forgot to support GIF animation? + # or they were lazy to get it to work under Windows! WTF! elif image.get_storage_type() == gtk.IMAGE_ANIMATION: self.status_icon.set_from_pixbuf( image.get_animation().get_static_image())