[libgda/LIBGDA_5.0] gda_value_stringify() now handles object type values



commit 193de1e95b45186afb0457cba124025a399286c0
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Mar 1 19:15:42 2012 +0100

    gda_value_stringify() now handles object type values

 libgda/gda-value.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index b0adaa6..50a5b49 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -2186,6 +2186,11 @@ gda_value_stringify (const GValue *value)
 			else
 				return g_strdup ("0000-00-00");
 		}
+		else if (G_TYPE_IS_OBJECT (type)) {
+			GObject *obj;
+			obj = g_value_get_object (value);
+			return g_strdup_printf ("%p (%s)", obj, G_OBJECT_TYPE_NAME (obj));
+		}
 		else
 			return g_strdup ("");
 	}



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