[libgda] gda_value_stringify() now handles object type values
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] gda_value_stringify() now handles object type values
- Date: Thu, 1 Mar 2012 19:54:04 +0000 (UTC)
commit c98ec44394304ecafaa00322773a9384b3970b66
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 ca53217..0ae8186 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -2192,6 +2192,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]