gimp r24986 - in trunk: . plug-ins/print



Author: neo
Date: Tue Feb 26 20:49:19 2008
New Revision: 24986
URL: http://svn.gnome.org/viewvc/gimp?rev=24986&view=rev

Log:
2008-02-26  Sven Neumann  <sven gimp org>

	* plug-ins/print/print.h (struct PrintData): removed unused 
field.

	* plug-ins/print/print-page-layout.c: set a minimum size of 
1/100
	of the paper size.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/print/print-page-layout.c
   trunk/plug-ins/print/print.h

Modified: trunk/plug-ins/print/print-page-layout.c
==============================================================================
--- trunk/plug-ins/print/print-page-layout.c	(original)
+++ trunk/plug-ins/print/print-page-layout.c	Tue Feb 26 20:49:19 2008
@@ -847,17 +847,19 @@
       if (ratio_x < ratio_y)
         y = (gdouble) info->image_height * ratio_x;
       else
-        x = (gdouble) info->image_width * ratio_y;
+        x = (gdouble) info->image_width  * ratio_y;
     }
 
-  gimp_size_entry_set_value_boundaries (info->size_entry, WIDTH,  0.0, x);
-  gimp_size_entry_set_value_boundaries (info->size_entry, HEIGHT, 0.0, y);
+  gimp_size_entry_set_value_boundaries (info->size_entry, WIDTH,
+                                        page_width  / 100.0, x);
+  gimp_size_entry_set_value_boundaries (info->size_entry, HEIGHT,
+                                        page_height / 100.0, y);
 
   print_size_info_get_page_dimensions (info,
                                        &page_width, &page_height,
                                        GTK_UNIT_POINTS);
 
-  x = (gdouble) info->image_width / page_width * 72.0;
+  x = (gdouble) info->image_width  / page_width  * 72.0;
   y = (gdouble) info->image_height / page_height * 72.0;
 
   if (info->chain && gimp_chain_button_get_active (info->chain))
@@ -871,7 +873,4 @@
                                          x, GIMP_MAX_RESOLUTION);
   gimp_size_entry_set_refval_boundaries (info->resolution_entry, 1,
                                          y, GIMP_MAX_RESOLUTION);
-
-  /* FIXME: is this still needed at all? */
-  data->orientation = gtk_page_setup_get_orientation (setup);
 }

Modified: trunk/plug-ins/print/print.h
==============================================================================
--- trunk/plug-ins/print/print.h	(original)
+++ trunk/plug-ins/print/print.h	Tue Feb 26 20:49:19 2008
@@ -38,6 +38,5 @@
   PrintCenterMode     center;
   gboolean            use_full_page;
   GtkPrintOperation  *operation;
-  GtkPageOrientation  orientation;
 } PrintData;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]