Ok, so I turned off digest mode. In the mean time, excuse the cut and paste below:
This patch doesn't really fix the problem, it only masks the compiler warning.
If gtk_window_set_default_size is expecting gints, then sp_document_width should return a gint instead of a gdouble and the document structure should store its width and height as gint. I don't have the source accessible to me right now, so I can't see how it is defined.
If a width was defined that exceeded INT_MAX, then when the gdouble was cast to a gint, data would be lost. A user would see a windo much smaller than they exected being displayed.
Now, the other way round is fine, you can cast away if you're going from a gint TO a gdouble.
Rob,
From: Jon A. Cruz <jon@...51...> Bug: Number type warning in help.c 2003-11-12 10:01
Here's a patch for bug [ 840545 ] Number type warning in help.c
Turns out that it was a very simple case.
Now I'm onto bugs 840539 and 840543
Oh, and I've dusted off my Sourceforge user ID of joncruz
Index: help.c
===================================================================
RCS file: /cvsroot/inkscape/inkscape/src/help.c,v
retrieving revision 1.2
diff -u -r1.2 help.c
--- help.c 30 Oct 2003 05:52:06 -0000 1.2
+++ help.c 12 Nov 2003 17:45:34 -0000
@@ -47,7 +47,7 @@
w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (w), _("About inkscape"));
- gtk_window_set_default_size (GTK_WINDOW (w), sp_document_width (doc), sp_document_height (doc));
+ gtk_window_set_default_size (GTK_WINDOW (w), (gint)(sp_document_width(doc)), (gint)(sp_document_height(doc)) );
#if 1
gtk_window_set_policy (GTK_WINDOW (w), TRUE, TRUE, FALSE);
#endif
Rob. http://members.rogers.com/rcrosbie
_________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963