diff src/print.c @ 736:a7289f9e8d29

Fix signed vs unsigned warnings. In most cases, gint was used instead of guint.
author zas_
date Thu, 22 May 2008 13:00:45 +0000
parents cca86176bf81
children 4fe8f9656107
line wrap: on
line diff
--- a/src/print.c	Thu May 22 11:28:35 2008 +0000
+++ b/src/print.c	Thu May 22 13:00:45 2008 +0000
@@ -177,6 +177,22 @@
 	TEXT_INFO_FILEPATH = 1 << 4
 } TextInfo;
 
+typedef enum {
+	PAPER_UNIT_POINTS = 0,
+	PAPER_UNIT_MM,
+	PAPER_UNIT_CM,
+	PAPER_UNIT_INCH,
+	PAPER_UNIT_PICAS,
+	PAPER_UNIT_COUNT
+} PaperUnits;
+
+typedef enum {
+	PAPER_ORIENTATION_PORTRAIT = 0,
+	PAPER_ORIENTATION_LANDSCAPE,
+	PAPER_ORIENTATION_COUNT
+} PaperOrientation;
+
+
 typedef struct _PrintWindow PrintWindow;
 struct _PrintWindow
 {
@@ -237,11 +253,11 @@
 	GtkWidget *margin_top_spin;
 	GtkWidget *margin_bottom_spin;
 
-	gint paper_units;
+	PaperUnits paper_units;
 	gint paper_size;
 	gdouble paper_width;
 	gdouble paper_height;
-	gint paper_orientation;
+	PaperOrientation paper_orientation;
 
 	gdouble margin_left;
 	gdouble margin_right;
@@ -329,21 +345,6 @@
  */
 
 
-typedef enum {
-	PAPER_UNIT_POINTS = 0,
-	PAPER_UNIT_MM,
-	PAPER_UNIT_CM,
-	PAPER_UNIT_INCH,
-	PAPER_UNIT_PICAS,
-	PAPER_UNIT_COUNT
-} PaperUnits;
-
-typedef enum {
-	PAPER_ORIENTATION_PORTRAIT = 0,
-	PAPER_ORIENTATION_LANDSCAPE,
-	PAPER_ORIENTATION_COUNT
-} PaperOrientation;
-
 typedef struct _PaperSize PaperSize;
 struct _PaperSize {
 	gchar *description;