From bf72124b6c4aaa8dcb8f9cfca176c4746eb39596 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 10 Mar 2006 13:54:04 +0000 Subject: [PATCH] enrich comment --- src/chat_control.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 65f299576..3804db5d7 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1468,10 +1468,15 @@ class ChatControl(ChatControlBase): real_jid = gajim.get_real_jid_from_fjid(self.account, self.contact.jid) if not real_jid: # this can happend if we're in a moderate room return + # Hide the small avatar + # this code hides the small avatar when we show a bigger one in case + # the avatar has a transparency hole in the middle + # so when we show the big one we avoid seeing the small one behind. + # It's why I set it transparent. image = self.xml.get_widget('avatar_image') pixbuf = image.get_pixbuf() - pixbuf.fill(0xffffff00) + pixbuf.fill(0xffffff00) # RGBA image.queue_draw() avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(real_jid)