set the number of pages to one before showing the dialog. Not that it

2008-04-07  Sven Neumann  <sven@gimp.org>

	* 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
This commit is contained in:
Sven Neumann 2008-04-07 10:38:38 +00:00 committed by Sven Neumann
parent 2f8cf53bb1
commit 33b7a95219
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2008-04-07 Sven Neumann <sven@gimp.org>
* 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 <sven@gimp.org>
* tools/pdbgen/pdb/procedural_db.pdb (procedural_db_proc_exists):

View File

@ -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"));

View File

@ -26,7 +26,6 @@ typedef enum
typedef struct
{
gint num_pages;
gint32 image_id;
gint32 drawable_id;
GimpUnit unit;