[json-glib] gobject: Use JsonSerializable API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] gobject: Use JsonSerializable API
- Date: Fri, 26 Oct 2012 17:12:18 +0000 (UTC)
commit 1e7a2ef9be305e8b1db806f364d18f704ca75a64
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Oct 26 17:20:43 2012 +0100
gobject: Use JsonSerializable API
Instead of directly accessing the vfunc from the interface vtable.
json-glib/json-gobject.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 5ac93c8..97b0338 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -318,10 +318,11 @@ json_gobject_new (GType gtype,
if (deserialize_property)
{
JSON_NOTE (GOBJECT, "Using JsonSerializable for property '%s'", pspec->name);
- res = iface->deserialize_property (serializable, pspec->name,
- &value,
- pspec,
- val);
+ res = json_serializable_deserialize_property (serializable,
+ pspec->name,
+ &value,
+ pspec,
+ val);
}
if (!res)
@@ -408,9 +409,10 @@ json_gobject_dump (GObject *gobject)
*/
if (serialize_property)
{
- node = iface->serialize_property (serializable, pspec->name,
- &value,
- pspec);
+ node = json_serializable_serialize_property (serializable,
+ pspec->name,
+ &value,
+ pspec);
}
/* skip if the value is the default for the property */
else if (!g_param_value_defaults (pspec, &value))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]