Mercurial > pidgin
diff finch/gntnotify.c @ 20691:f1fe9b873b0b
propagate from branch 'im.pidgin.pidgin.2.2.1' (head 7494c5484079eedcf158172f4208be3f986c068f)
to branch 'im.pidgin.pidgin' (head ead56863984a2925621479326e71927d704eb22c)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 28 Sep 2007 18:23:54 +0000 |
parents | a3f07fa68e90 |
children | e587a7be2916 |
line wrap: on
line diff
--- a/finch/gntnotify.c Fri Sep 28 18:21:40 2007 +0000 +++ b/finch/gntnotify.c Fri Sep 28 18:23:54 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);