[json-glib] gobject: Use construct and construct-only properties
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] gobject: Use construct and construct-only properties
- Date: Sun, 15 Aug 2010 17:55:54 +0000 (UTC)
commit 2d7550948dfb2e5907b851bc2c4bd296a7526086
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Sun Aug 15 18:44:13 2010 +0100
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.
json-glib/json-gobject.c | 2 +-
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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]