From 510a8c28e84030f102c03bc14d422a174d9c01a5 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 20 May 2004 17:40:46 +0000 Subject: finish pages printing by gnome_print_job_close call before showing preview 2004-05-20 Radek Doulik * 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 svn path=/trunk/; revision=26015 --- addressbook/ChangeLog | 6 ++++++ addressbook/printing/e-contact-print.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'addressbook') 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 + * 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)); -- cgit v1.2.3