[json-glib: 1/3] serializable: Document behaviour for `construct-only` properties




commit e1152655ee2b345f9fbf69162c88e14a9fa5d1d5
Author: Matt Jakeman <mjak923 aucklanduni ac nz>
Date:   Sun Feb 6 01:05:26 2022 +0000

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]