r17222 - gnucash/branches/gda-dev2/src/backend/sql - Fix compilation problem - GType may no longer be an integer. Use g_type_name()

Phil Longstaff plongstaff at cvs.gnucash.org
Thu Jun 12 16:10:59 EDT 2008


Author: plongstaff
Date: 2008-06-12 16:10:59 -0400 (Thu, 12 Jun 2008)
New Revision: 17222
Trac: http://svn.gnucash.org/trac/changeset/17222

Modified:
   gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-util-sql.c
Log:
Fix compilation problem - GType may no longer be an integer.  Use g_type_name()
to identify a type.


Modified: gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-util-sql.c
===================================================================
--- gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-util-sql.c	2008-06-12 13:01:37 UTC (rev 17221)
+++ gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-util-sql.c	2008-06-12 20:10:59 UTC (rev 17222)
@@ -1408,7 +1408,7 @@
 			g_free( string );
 			return str;
 		} else {
-			PWARN( "not transformable, gtype = %d\n", G_VALUE_TYPE(value) );
+			PWARN( "not transformable, gtype = '%s'\n", g_type_name( G_VALUE_TYPE(value) ) );
 			return "$$$";
 		}
 	} else {



More information about the gnucash-changes mailing list