Skip to content
Snippets Groups Projects
Commit bf72124b authored by nkour's avatar nkour
Browse files

enrich comment

parent b0572359
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment