don't draw a black square for groupchat occupants that have no affiliation
This commit is contained in:
parent
a038453072
commit
06d4188411
|
@ -1047,7 +1047,8 @@ class GroupchatControl(ChatControlBase):
|
|||
name += ('\n<span size="small" style="italic" foreground="%s">'
|
||||
'%s</span>') % (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)
|
||||
|
|
Loading…
Reference in New Issue