# HG changeset patch # User hyc@symas.com # Date 1324596229 0 # Node ID 85d75e81e12f94a7d76bea3ef7f68b82f03a1f5c # Parent f07501af8bae588c3a0a9fb3a45e04439738388c Fix insertion order of search results in Finch. I fixed the type from the original patch by Howard. Fixes #14822. committer: Elliott Sales de Andrade diff -r f07501af8bae -r 85d75e81e12f finch/gntnotify.c --- a/finch/gntnotify.c Thu Dec 22 08:39:45 2011 +0000 +++ b/finch/gntnotify.c Thu Dec 22 23:23:49 2011 +0000 @@ -386,6 +386,7 @@ { GntTree *tree = GNT_TREE(data); GList *o; + GntTreeRow *prev = NULL; /* XXX: Do I need to empty the tree here? */ @@ -393,7 +394,8 @@ { gnt_tree_add_row_after(GNT_TREE(tree), o->data, gnt_tree_create_row_from_list(GNT_TREE(tree), o->data), - NULL, NULL); + NULL, prev); + prev = o->data; } }