From f346cf76bfa069fe29c5056d5a231e53cc9037f4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 6 Oct 2006 22:57:23 +0000 Subject: [PATCH] fix search in gc roster treeview. Fixes #2470 --- src/groupchat_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 295f10f99..146f271f1 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -43,9 +43,9 @@ from conversation_textview import ConversationTextview #(status_image, type, nick, shown_nick) ( C_IMG, # image to show state (online, new message etc) -C_TYPE, # type of the row ('contact' or 'group') +C_TEXT, # type of the row ('contact' or 'group') +C_TYPE, # text shown in the cellrenderer C_NICK, # contact nickame or group name -C_TEXT, # text shown in the cellrenderer C_AVATAR, # avatar of the contact ) = range(5) @@ -253,7 +253,7 @@ class GroupchatControl(ChatControlBase): id = self.list_treeview.connect('size-allocate', self.on_treeview_size_allocate) self.handlers[id] = self.list_treeview - #status_image, type, nickname, shown_nick + #status_image, shown_nick, type, nickname, avatar store = gtk.TreeStore(gtk.Image, str, str, str, gtk.gdk.Pixbuf) store.set_sort_column_id(C_TEXT, gtk.SORT_ASCENDING) self.list_treeview.set_model(store)