summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-08-15 18:44:13 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-08-15 18:44:13 +0100
commit2d7550948dfb2e5907b851bc2c4bd296a7526086 (patch)
treeaf4d1cd300c0727066d79568037b677159e2062b /json-glib/json-gobject.c
parentbe48afe5801a541996bb64437c278088e70258f6 (diff)
downloadjson-glib-2d7550948dfb2e5907b851bc2c4bd296a7526086.tar.gz
gobject: Use construct and construct-only properties
Right now, we're checking twice for G_PARAM_CONSTRUCT_ONLY, but what we really want is to check for both G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY properties when creating a new instance from a JSON definition.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index ae98b2b..9401ab9 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -216,7 +216,7 @@ json_gobject_new (GType gtype,
goto next_member;
if (!(pspec->flags & G_PARAM_CONSTRUCT_ONLY) ||
- !(pspec->flags & G_PARAM_CONSTRUCT_ONLY))
+ !(pspec->flags & G_PARAM_CONSTRUCT))
goto next_member;
if (!(pspec->flags & G_PARAM_WRITABLE))