summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2022-10-18 08:45:21 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2022-10-18 08:45:21 +0000
commitd7fb79cfd0a78478206f4bd6ae7dfc543184ed41 (patch)
tree37fe6264a21d4fa08738e620f6bc47e406bbb5ba
parenta862cc39013e841cd6bff02ab7a02937e2836c93 (diff)
parent17dd13e36d10792b8992a6005aa127deb6f058ad (diff)
downloadjson-glib-d7fb79cfd0a78478206f4bd6ae7dfc543184ed41.tar.gz
Merge branch 'serializable-docs' into 'master'
Document behaviour for deserializing `construct-only` properties See merge request GNOME/json-glib!48
-rw-r--r--json-glib/json-serializable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c
index e19670b..207a2c6 100644
--- a/json-glib/json-serializable.c
+++ b/json-glib/json-serializable.c
@@ -86,6 +86,9 @@ json_serializable_serialize_property (JsonSerializable *serializable,
* property description (since JSON-GLib 1.6)
* - a `GValue` initialized with the expected type of the property
*
+ * 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
*/
gboolean