From 97c1aa38e22b8f645e7a7c832495ce7b4decf6d2 Mon Sep 17 00:00:00 2001 From: bigpod Date: Fri, 4 Mar 2005 14:17:55 +0000 Subject: [PATCH] A fix for the window icon. --- plugins/gtkgui/gtkgui.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 56d1cac13..a9d34c8bc 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -2518,7 +2518,12 @@ class plugin: def handle_event_status(self, account, status): #('STATUS', account, status) self.roster.on_status_changed(account, status) - self.roster.window.set_icon(self.roster.pixbufs[status].get_pixbuf()) + image = self.roster.pixbufs[status] + if image.get_storage_type() == gtk.IMAGE_ANIMATION: + pixbuf = image.get_animation().get_static_image() + self.roster.window.set_icon(pixbuf) + elif image.get_storage_type() == gtk.IMAGE_PIXBUF: + self.roster.window.set_icon(image.get_pixbuf()) def handle_event_notify(self, account, array): #('NOTIFY', account, (jid, status, message, resource, priority, keyID,