comparison finch/gntconv.c @ 19632:61473f8a5e2b

Use the proper column for searching users in the chat userlist.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 04 Sep 2007 05:23:50 +0000
parents 4da3c8618c24
children 44b4e8bd759b
comparison
equal deleted inserted replaced
19626:1a0fabe867be 19632:61473f8a5e2b
611 gnt_box_set_pad(GNT_BOX(hbox), 0); 611 gnt_box_set_pad(GNT_BOX(hbox), 0);
612 tree = fc->userlist = gnt_tree_new_with_columns(2); 612 tree = fc->userlist = gnt_tree_new_with_columns(2);
613 gnt_tree_set_col_width(GNT_TREE(tree), 0, 1); /* The flag column */ 613 gnt_tree_set_col_width(GNT_TREE(tree), 0, 1); /* The flag column */
614 gnt_tree_set_compare_func(GNT_TREE(tree), (GCompareFunc)g_utf8_collate); 614 gnt_tree_set_compare_func(GNT_TREE(tree), (GCompareFunc)g_utf8_collate);
615 gnt_tree_set_hash_fns(GNT_TREE(tree), g_str_hash, g_str_equal, g_free); 615 gnt_tree_set_hash_fns(GNT_TREE(tree), g_str_hash, g_str_equal, g_free);
616 gnt_tree_set_search_column(GNT_TREE(tree), 1);
616 GNT_WIDGET_SET_FLAGS(tree, GNT_WIDGET_NO_BORDER); 617 GNT_WIDGET_SET_FLAGS(tree, GNT_WIDGET_NO_BORDER);
617 gnt_box_add_widget(GNT_BOX(hbox), ggc->tv); 618 gnt_box_add_widget(GNT_BOX(hbox), ggc->tv);
618 gnt_box_add_widget(GNT_BOX(hbox), tree); 619 gnt_box_add_widget(GNT_BOX(hbox), tree);
619 gnt_box_add_widget(GNT_BOX(ggc->window), hbox); 620 gnt_box_add_widget(GNT_BOX(ggc->window), hbox);
620 g_signal_connect(G_OBJECT(tree), "activate", G_CALLBACK(create_conv_from_userlist), ggc); 621 g_signal_connect(G_OBJECT(tree), "activate", G_CALLBACK(create_conv_from_userlist), ggc);