From 06d418841153e6a744bf7b4cf38d0c9966dc7f6b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 15 Feb 2009 10:16:08 +0000 Subject: [PATCH] don't draw a black square for groupchat occupants that have no affiliation --- src/groupchat_control.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 42cab6582..32ab4b68b 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1047,7 +1047,8 @@ class GroupchatControl(ChatControlBase): name += ('\n' '%s') % (colorstring, gobject.markup_escape_text(status)) - if image.get_storage_type() == gtk.IMAGE_PIXBUF: + if image.get_storage_type() == gtk.IMAGE_PIXBUF and \ + gc_contact.affiliation != 'none': pixbuf1 = image.get_pixbuf().copy() pixbuf2 = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, 4, 4) if gc_contact.affiliation == 'owner': @@ -1056,8 +1057,6 @@ class GroupchatControl(ChatControlBase): pixbuf2.fill(0xffb200ff) # Oragne elif gc_contact.affiliation == 'member': pixbuf2.fill(0x00ff00ff) # Green - else: - pixbuf2.fill(0x000000ff) # Green pixbuf2.composite(pixbuf1, 12, 12, pixbuf2.get_property('width'), pixbuf2.get_property('height'), 0, 0, 1.0, 1.0, gtk.gdk.INTERP_HYPER, 127)