From 1e7a2ef9be305e8b1db806f364d18f704ca75a64 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 26 Oct 2012 17:20:43 +0100 Subject: gobject: Use JsonSerializable API Instead of directly accessing the vfunc from the interface vtable. --- json-glib/json-gobject.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'json-glib/json-gobject.c') 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)) -- cgit v1.2.1