Mercurial > pidgin
diff finch/gntnotify.c @ 20100:a3f07fa68e90
Access search results directly instead of going through the API because
it's way more efficient this way,a nd mark the old functions as
deprecated.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 17 Sep 2007 06:42:08 +0000 |
parents | 6bf32c9e15a7 |
children | e587a7be2916 |
line wrap: on
line diff
--- a/finch/gntnotify.c Mon Sep 17 04:29:46 2007 +0000 +++ b/finch/gntnotify.c Mon Sep 17 06:42:08 2007 +0000 @@ -352,14 +352,17 @@ gnt_box_add_widget(GNT_BOX(window), gnt_label_new_with_format(secondary, GNT_TEXT_FLAG_NORMAL)); - columns = purple_notify_searchresults_get_columns_count(results); + columns = g_list_length(results->columns); tree = gnt_tree_new_with_columns(columns); gnt_tree_set_show_title(GNT_TREE(tree), TRUE); gnt_box_add_widget(GNT_BOX(window), tree); - for (i = 0; i < columns; i++) - gnt_tree_set_column_title(GNT_TREE(tree), i, - purple_notify_searchresults_column_get_title(results, i)); + i = 0; + for (iter = results->columns; iter; iter = iter->next) + { + gnt_tree_set_column_title(GNT_TREE(tree), i, iter->data); + i++; + } box = gnt_hbox_new(TRUE);