[libgda/LIBGDA_5.0] gda_g_type_from_string(): recognize "gshort" and "gushort"



commit d0f23c7b8da9f8f6229342f6de017f9a65a399e8
Author: Vivien Malerba <malerba gnome-db org>
Date:   Fri Jan 6 20:07:18 2012 +0100

    gda_g_type_from_string(): recognize "gshort" and "gushort"

 libgda/gda-util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index aec0e7e..c27b2d4 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -171,6 +171,10 @@ gda_g_type_from_string (const gchar *str)
 			type = G_TYPE_CHAR;
 		else if (!g_ascii_strcasecmp (str, "uchar"))
 			type = G_TYPE_UCHAR;
+		else if (!g_ascii_strcasecmp (str, "gshort"))
+			type = GDA_TYPE_SHORT;
+		else if (!g_ascii_strcasecmp (str, "gushort"))
+			type = GDA_TYPE_USHORT;
 		else
 			/* could not find a valid GType for @str */
 			type = G_TYPE_INVALID;



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