Author: steve-e Date: 2007-06-27 11:26:58 +0200 (Wed, 27 Jun 2007) New Revision: 8325
Modified: trunk/src/groupchat_control.py trunk/src/roster_window.py Log: See [8324]: do the same in groupchats. Comment added
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2007-06-27 08:28:36 UTC (rev 8324) +++ trunk/src/groupchat_control.py 2007-06-27 09:26:58 UTC (rev 8325) @@ -63,6 +63,12 @@ # 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:
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2007-06-27 08:28:36 UTC (rev 8324) +++ trunk/src/roster_window.py 2007-06-27 09:26:58 UTC (rev 8325) @@ -4468,6 +4468,7 @@ 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: