comparison finch/gntnotify.c @ 32411:85d75e81e12f

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 <qulogic@pidgin.im>
author hyc@symas.com
date Thu, 22 Dec 2011 23:23:49 +0000
parents f13cb8438ee8
children
comparison
equal deleted inserted replaced
32410:f07501af8bae 32411:85d75e81e12f
384 finch_notify_sr_new_rows(PurpleConnection *gc, 384 finch_notify_sr_new_rows(PurpleConnection *gc,
385 PurpleNotifySearchResults *results, void *data) 385 PurpleNotifySearchResults *results, void *data)
386 { 386 {
387 GntTree *tree = GNT_TREE(data); 387 GntTree *tree = GNT_TREE(data);
388 GList *o; 388 GList *o;
389 GntTreeRow *prev = NULL;
389 390
390 /* XXX: Do I need to empty the tree here? */ 391 /* XXX: Do I need to empty the tree here? */
391 392
392 for (o = results->rows; o; o = o->next) 393 for (o = results->rows; o; o = o->next)
393 { 394 {
394 gnt_tree_add_row_after(GNT_TREE(tree), o->data, 395 gnt_tree_add_row_after(GNT_TREE(tree), o->data,
395 gnt_tree_create_row_from_list(GNT_TREE(tree), o->data), 396 gnt_tree_create_row_from_list(GNT_TREE(tree), o->data),
396 NULL, NULL); 397 NULL, prev);
398 prev = o->data;
397 } 399 }
398 } 400 }
399 401
400 static void 402 static void
401 notify_sr_destroy_cb(GntWidget *window, void *data) 403 notify_sr_destroy_cb(GntWidget *window, void *data)