From 33b7a952199f982e8e7aecc2cc09b323e7a75b4f Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 7 Apr 2008 10:38:38 +0000 Subject: [PATCH] set the number of pages to one before showing the dialog. Not that it 2008-04-07 Sven Neumann * plug-ins/print/print.[ch]: set the number of pages to one before showing the dialog. Not that it would make a difference, but it could... svn path=/trunk/; revision=25387 --- ChangeLog | 6 ++++++ plug-ins/print/print.c | 3 +-- plug-ins/print/print.h | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6039cffd6e..25b92b1566 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-07 Sven Neumann + + * plug-ins/print/print.[ch]: set the number of pages to one before + showing the dialog. Not that it would make a difference, but it + could... + 2008-04-07 Sven Neumann * tools/pdbgen/pdb/procedural_db.pdb (procedural_db_proc_exists): diff --git a/plug-ins/print/print.c b/plug-ins/print/print.c index fb2f12dd1c..7b7ad7ef85 100644 --- a/plug-ins/print/print.c +++ b/plug-ins/print/print.c @@ -207,12 +207,12 @@ print_image (gint32 image_ID, operation = gtk_print_operation_new (); + gtk_print_operation_set_n_pages (operation, 1); print_operation_set_name (operation, orig_image_ID); print_page_setup_load (operation, orig_image_ID); /* fill in the PrintData struct */ - data.num_pages = 1; data.image_id = orig_image_ID; data.drawable_id = drawable_ID; data.unit = gimp_get_default_unit (); @@ -369,7 +369,6 @@ begin_print (GtkPrintOperation *operation, GtkPrintContext *context, PrintData *data) { - gtk_print_operation_set_n_pages (operation, data->num_pages); gtk_print_operation_set_use_full_page (operation, data->use_full_page); gimp_progress_init (_("Printing")); diff --git a/plug-ins/print/print.h b/plug-ins/print/print.h index 20e710f702..1b691734e0 100644 --- a/plug-ins/print/print.h +++ b/plug-ins/print/print.h @@ -26,7 +26,6 @@ typedef enum typedef struct { - gint num_pages; gint32 image_id; gint32 drawable_id; GimpUnit unit;