[libgda/LIBGDA_4.2] gda_g_type_from_string(): recognize "gshort" and "gushort"



commit 0fabe332c0310163449e9c68943d1cce05ddffc8
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 39ab8d9..054e5b1 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]