Bug: Number type warning in help.c
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
Applied; this seems to have helped but we're still getting a warning:
cvhelp.c: In function `void sp_help_about()': help.c:52: warning: passing `gdouble' for argument passing 3 of `void gtk_window_set_default_size(GtkWindow*, int, int)' help.c:52: warning: argument to `int' from `gdouble'
Bryce
On Wed, 12 Nov 2003, Jon A. Cruz wrote:
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
This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Bryce Harrington
-
Jon A. Cruz