[libgda] gda_g_type_from_string(): recognize "gshort" and "gushort"
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] gda_g_type_from_string(): recognize "gshort" and "gushort"
- Date: Fri, 6 Jan 2012 20:19:58 +0000 (UTC)
commit b0f46a7492a1c27b92da10c1c2e0b540af10576d
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]