diff options
author | Milan Crha <mcrha@redhat.com> | 2012-01-02 23:07:09 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-01-02 23:07:09 +0800 |
commit | 49ffbb973093f15e4d5e34f287445f66a8d64e6d (patch) | |
tree | 0d3a8072bb21b0e76e5a31ab46a709bf929b8d3b | |
parent | a822d5da967c9d98d50cad83b9e36b1404195a19 (diff) | |
download | gsoc2013-evolution-49ffbb973093f15e4d5e34f287445f66a8d64e6d.tar.gz gsoc2013-evolution-49ffbb973093f15e4d5e34f287445f66a8d64e6d.tar.zst gsoc2013-evolution-49ffbb973093f15e4d5e34f287445f66a8d64e6d.zip |
Bug #343499 - Contacts not sorted the right way on print out
-rw-r--r-- | addressbook/printing/e-contact-print.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c index 0aac4a7530..519f3bc336 100644 --- a/addressbook/printing/e-contact-print.c +++ b/addressbook/printing/e-contact-print.c @@ -391,10 +391,9 @@ contacts_added (EBookClientView *book_view, EContactPrintContext *ctxt) { while (contact_list != NULL) { - ctxt->contact_list = g_slist_insert_sorted ( + ctxt->contact_list = g_slist_prepend ( ctxt->contact_list, - g_object_ref (contact_list->data), - (GCompareFunc) contact_compare); + g_object_ref (contact_list->data)); contact_list = contact_list->next; } } @@ -693,6 +692,9 @@ contact_begin_print (GtkPrintOperation *operation, if (ctxt->contact_list != NULL) { ctxt->page_nr = -1; ctxt->pages = 1; + ctxt->contact_list = g_slist_sort ( + ctxt->contact_list, + (GCompareFunc) contact_compare); g_slist_foreach (ctxt->contact_list, (GFunc) contact_draw, ctxt); gtk_print_operation_set_n_pages (operation, ctxt->pages); } |