summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 5daf93e..5742188 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -216,8 +216,8 @@ json_gobject_new (GType gtype,
if (!pspec)
goto next_member;
- if (!(pspec->flags & G_PARAM_CONSTRUCT_ONLY) ||
- !(pspec->flags & G_PARAM_CONSTRUCT))
+ /* we only apply construct-only properties here */
+ if ((pspec->flags & G_PARAM_CONSTRUCT_ONLY) == 0)
goto next_member;
if (!(pspec->flags & G_PARAM_WRITABLE))