diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-26 17:20:43 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-26 17:20:43 +0100 |
commit | 1e7a2ef9be305e8b1db806f364d18f704ca75a64 (patch) | |
tree | 509e3437dbe1c8447dad2ebe4b88eec278baf45e /json-glib/json-gobject.c | |
parent | 4fe6c5977d95c37c693d4f0b1d2dd90ae564b8b3 (diff) | |
download | json-glib-1e7a2ef9be305e8b1db806f364d18f704ca75a64.tar.gz |
gobject: Use JsonSerializable API
Instead of directly accessing the vfunc from the interface vtable.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | 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)) |