bugfix for open closed in GC

This commit is contained in:
Nikos Kouremenos 2005-04-23 13:18:47 +00:00
parent 20ad41d40b
commit d8aeac2fbb
1 changed files with 2 additions and 4 deletions

View File

@ -562,13 +562,11 @@ class Groupchat_window(chat.Chat):
def on_list_treeview_row_expanded(self, widget, iter, path): def on_list_treeview_row_expanded(self, widget, iter, path):
"""When a row is expanded: change the icon of the arrow""" """When a row is expanded: change the icon of the arrow"""
model = widget.get_model() model = widget.get_model()
state_images = self.plugin.roster.get_appropriate_state_images(jid) image = self.plugin.roster.jabber_state_images['opened']
image = state_images['opened']
model.set_value(iter, 0, image) model.set_value(iter, 0, image)
def on_list_treeview_row_collapsed(self, widget, iter, path): def on_list_treeview_row_collapsed(self, widget, iter, path):
"""When a row is collapsed: change the icon of the arrow""" """When a row is collapsed: change the icon of the arrow"""
model = widget.get_model() model = widget.get_model()
state_images = self.plugin.roster.get_appropriate_state_images(jid) image = self.plugin.roster.jabber_state_images['closed']
image = state_images['closed']
model.set_value(iter, 0, image) model.set_value(iter, 0, image)