From e1152655ee2b345f9fbf69162c88e14a9fa5d1d5 Mon Sep 17 00:00:00 2001 From: Matt Jakeman Date: Sun, 6 Feb 2022 01:05:26 +0000 Subject: serializable: Document behaviour for `construct-only` properties --- json-glib/json-serializable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c index de6c1c4..d78853a 100644 --- a/json-glib/json-serializable.c +++ b/json-glib/json-serializable.c @@ -86,6 +86,8 @@ json_serializable_serialize_property (JsonSerializable *serializable, * property description (since JSON-GLib 1.6) * - a `GValue` initialized with the expected type of the property * + * This will not be called for properties that are `G_PARAM_CONSTRUCT_ONLY`. + * * Returns: `TRUE` if the property was successfully deserialized */ gboolean -- cgit v1.2.1 From 17dd13e36d10792b8992a6005aa127deb6f058ad Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 12 Oct 2022 02:57:09 +0000 Subject: serializable: Improve wording of `construct-only` properties comment --- json-glib/json-serializable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c index d78853a..b53fa9a 100644 --- a/json-glib/json-serializable.c +++ b/json-glib/json-serializable.c @@ -86,7 +86,8 @@ json_serializable_serialize_property (JsonSerializable *serializable, * property description (since JSON-GLib 1.6) * - a `GValue` initialized with the expected type of the property * - * This will not be called for properties that are `G_PARAM_CONSTRUCT_ONLY`. + * This function will not be called for properties that are marked as + * as `G_PARAM_CONSTRUCT_ONLY`. * * Returns: `TRUE` if the property was successfully deserialized */ -- cgit v1.2.1