[gnumeric] change uint to guint



commit 08c9c4b08d898131e7e24cafb483c678ae4717ee
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue May 25 19:41:59 2010 -0600

    change uint to guint
    
    2010-05-25 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-printer-setup.c (MarginPreviewPageAvailableSize):
    	  change uint to guint
    	(margin_preview_page_available_size): ditto

 src/dialogs/ChangeLog              |    6 ++++++
 src/dialogs/dialog-printer-setup.c |   14 +++++++-------
 2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index ff5afc8..3f32af5 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-25 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* dialog-printer-setup.c (MarginPreviewPageAvailableSize): 
+	  change uint to guint
+	(margin_preview_page_available_size): ditto
+	
 2010-05-24 Andreas J. Guelzow <aguelzow pyrshep ca>
 	for Sameer Morar <smorar gmail com>
 	
diff --git a/src/dialogs/dialog-printer-setup.c b/src/dialogs/dialog-printer-setup.c
index 1f129e9..d307db4 100644
--- a/src/dialogs/dialog-printer-setup.c
+++ b/src/dialogs/dialog-printer-setup.c
@@ -81,7 +81,7 @@ typedef struct {
 
 typedef struct {
 	/* The available width and height for the nice preview page */
-	uint height, width;
+	guint height, width;
 } MarginPreviewPageAvailableSize;
 
 typedef struct {
@@ -442,16 +442,16 @@ margin_preview_page_available_size(PrinterSetupState *state,
 		/* Find largest widget in each table column */
 		/* Exclude widgets that expand across more than one table cells */
 		if ( left_att + 1 == right_att){
-			if ((uint) requisition.width > widths[left_att]) {
-				widths[left_att] = (uint) requisition.width;
+			if ((guint) requisition.width > widths[left_att]) {
+				widths[left_att] = (guint) requisition.width;
 			}
 		}
 
 		/* Find largest widget in each table row */
 		/* Exclude widgets that expand across more than one table cells */
 		if ( top_att + 1 == bottom_att){
-			if ((uint) requisition.height > heights[top_att]) {
-				heights[top_att] = (uint) requisition.height;
+			if ((guint) requisition.height > heights[top_att]) {
+				heights[top_att] = (guint) requisition.height;
 			}
 		}
 	}
@@ -482,9 +482,9 @@ margin_preview_page_available_size(PrinterSetupState *state,
 
 	/* Account for the spacing between table cells */
 	available_size->width = available_size->width +
-		(uint) gtk_table_get_default_col_spacing(GTK_TABLE(table)) * (right_att - left_att);
+		gtk_table_get_default_col_spacing(GTK_TABLE(table)) * (right_att - left_att);
 	available_size->height = available_size->height +
-		(uint) gtk_table_get_default_row_spacing(GTK_TABLE(table)) * (bottom_att - top_att);
+		gtk_table_get_default_row_spacing(GTK_TABLE(table)) * (bottom_att - top_att);
 }
 
 static void



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