aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/printing/e-contact-print.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fbba4a78ac..0a89664d2a 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
2004-05-20 Radek Doulik <rodo@ximian.com>
+ * printing/e-contact-print.c (complete_sequence): finish pages
+ printing by gnome_print_job_close call before showing preview or
+ calling gnome_print_job_print
+
+ See #54482
+
* gui/widgets/e-addressbook-view.c (eab_view_print_preview): added
call to begin page, ref printable and sink it to avoid finalizing of
floating object
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index dbbb394a3b..485e427c62 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -565,6 +565,7 @@ complete_sequence(EBookView *book_view, EBookViewStatus status, EContactPrintCon
e_contact_print_letter_tab(ctxt);
gnome_print_showpage(ctxt->pc);
gnome_print_context_close(ctxt->pc);
+ gnome_print_job_close(ctxt->master);
g_free(ctxt->character);
if (book_view)
g_object_unref(book_view);
@@ -923,6 +924,7 @@ e_contact_print_response(GtkWidget *dialog, gint response_id, gpointer data)
complete_sequence(NULL, E_BOOK_VIEW_STATUS_OK, ctxt);
}
gtk_widget_destroy (dialog);
+
break;
case GNOME_PRINT_DIALOG_RESPONSE_PREVIEW:
config = gnome_print_dialog_get_config (GNOME_PRINT_DIALOG(dialog));