[evolution] Bug #343499 - Contacts not sorted the right way on print out
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #343499 - Contacts not sorted the right way on print out
- Date: Mon, 2 Jan 2012 15:07:37 +0000 (UTC)
commit 49ffbb973093f15e4d5e34f287445f66a8d64e6d
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 2 16:07:09 2012 +0100
Bug #343499 - Contacts not sorted the right way on print out
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 0aac4a7..519f3bc 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]