aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-05-21 01:40:46 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-05-21 01:40:46 +0800
commit510a8c28e84030f102c03bc14d422a174d9c01a5 (patch)
tree6be7fb12c5ce0df4254b6d5f0758d0d9c126656d /addressbook
parent0af3cfe692993829b1ac0853d796d83cbad5e950 (diff)
downloadgsoc2013-evolution-510a8c28e84030f102c03bc14d422a174d9c01a5.tar.gz
gsoc2013-evolution-510a8c28e84030f102c03bc14d422a174d9c01a5.tar.zst
gsoc2013-evolution-510a8c28e84030f102c03bc14d422a174d9c01a5.zip
finish pages printing by gnome_print_job_close call before showing preview
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 svn path=/trunk/; revision=26015
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));