See [8324]: do the same in groupchats. Comment added

This commit is contained in:
Stephan Erb 2007-06-27 09:26:58 +00:00
parent 497d5d0e0e
commit e88d547ed9
2 changed files with 7 additions and 0 deletions

View File

@ -63,6 +63,12 @@ def tree_cell_data_func(column, renderer, model, iter, tv=None):
# cell data func is global, because we don't want it to keep
# reference to GroupchatControl instance (self)
theme = gajim.config.get('roster_theme')
# allocate space for avatar only if needed
if isinstance(renderer, gtk.CellRendererPixbuf):
if model[iter][C_AVATAR]:
renderer.set_property('visible', True)
else:
renderer.set_property('visible', False)
if model.iter_parent(iter):
bgcolor = gajim.config.get_per('themes', theme, 'contactbgcolor')
if bgcolor:

View File

@ -4468,6 +4468,7 @@ class RosterWindow:
padlock)'''
theme = gajim.config.get('roster_theme')
type_ = model[iter][C_TYPE]
# allocate space for the icon only if needed
if model[iter][C_SECPIXBUF]:
renderer.set_property('visible', True)
else: