do not show empty pep and avatar in roster

This commit is contained in:
Denis Fomin 2013-01-07 13:18:48 +04:00
parent 250c25c62e
commit b70614e7be
1 changed files with 4 additions and 1 deletions

View File

@ -5192,7 +5192,7 @@ class RosterWindow:
return
# allocate space for the icon only if needed
if not model[titer][data]:
if not model[titer][data] or model[titer][data] == empty_pixbuf:
renderer.set_property('visible', False)
else:
renderer.set_property('visible', True)
@ -5236,6 +5236,9 @@ class RosterWindow:
self._set_contact_row_background_color(renderer, jid, account)
else:
renderer.set_property('visible', False)
if model[titer][C_AVATAR_PIXBUF] == empty_pixbuf and \
gajim.config.get('avatar_position_in_roster') != 'left':
renderer.set_property('visible', False)
if gajim.config.get('avatar_position_in_roster') == 'left':
renderer.set_property('width', gajim.config.get(