fix TB: get the avatar from folder when it's a pm

This commit is contained in:
Yann Leboulanger 2006-03-16 17:47:31 +00:00
parent b3de43ae3f
commit 72e7cb6423
1 changed files with 5 additions and 1 deletions

View File

@ -1473,7 +1473,11 @@ class ChatControl(ChatControlBase):
pixbuf.fill(0xffffff00) # RGBA pixbuf.fill(0xffffff00) # RGBA
image.queue_draw() image.queue_draw()
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(real_jid) is_fake = False
if self.type_id == message_control.TYPE_PM:
is_fake = True
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(real_jid,
is_fake)
screen_w = gtk.gdk.screen_width() screen_w = gtk.gdk.screen_width()
screen_h = gtk.gdk.screen_height() screen_h = gtk.gdk.screen_height()
avatar_w = avatar_pixbuf.get_width() avatar_w = avatar_pixbuf.get_width()