always use statusicon in systray, not event icon, we already blink.
This commit is contained in:
parent
c5843e8878
commit
ddb493c87d
|
@ -106,18 +106,16 @@ class StatusIcon:
|
||||||
if not gajim.interface.systray_enabled:
|
if not gajim.interface.systray_enabled:
|
||||||
return
|
return
|
||||||
if gajim.events.get_nb_systray_events():
|
if gajim.events.get_nb_systray_events():
|
||||||
state = 'event'
|
|
||||||
self.status_icon.set_blinking(True)
|
self.status_icon.set_blinking(True)
|
||||||
else:
|
else:
|
||||||
state = self.status
|
|
||||||
self.status_icon.set_blinking(False)
|
self.status_icon.set_blinking(False)
|
||||||
|
|
||||||
#FIXME: do not always use 16x16 (ask actually used size and use that)
|
# 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:
|
if image.get_storage_type() == gtk.IMAGE_PIXBUF:
|
||||||
self.status_icon.set_from_pixbuf(image.get_pixbuf())
|
self.status_icon.set_from_pixbuf(image.get_pixbuf())
|
||||||
#FIXME: oops they forgot to support GIF animation?
|
# FIXME: oops they forgot to support GIF animation?
|
||||||
#or they were lazy to get it to work under Windows! WTF!
|
# or they were lazy to get it to work under Windows! WTF!
|
||||||
elif image.get_storage_type() == gtk.IMAGE_ANIMATION:
|
elif image.get_storage_type() == gtk.IMAGE_ANIMATION:
|
||||||
self.status_icon.set_from_pixbuf(
|
self.status_icon.set_from_pixbuf(
|
||||||
image.get_animation().get_static_image())
|
image.get_animation().get_static_image())
|
||||||
|
|
Loading…
Reference in New Issue