bg colors are back in gc

This commit is contained in:
Yann Leboulanger 2005-06-29 21:13:38 +00:00
parent 2563414ccd
commit 2db9bfb9ce
1 changed files with 4 additions and 4 deletions

View File

@ -930,11 +930,11 @@ class GroupchatWindow(chat.Chat):
self.hpaneds[room_jid].set_position(self.hpaned_position)
def tree_cell_data_func(self, column, renderer, model, iter, data=None):
theme = gajim.config.get('roster_theme')
if model.iter_parent(iter):
bgcolor = gajim.config.get('userbgcolor')
renderer.set_property('cell-background', bgcolor)
bgcolor = gajim.config.get_per('themes', theme, 'contactbgcolor')
else: # it is root (eg. group)
bgcolor = gajim.config.get('groupbgcolor')
bgcolor = gajim.config.get_per('themes', theme, 'groupbgcolor')
renderer.set_property('cell-background', bgcolor)
def on_actions_button_clicked(self, button):