summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-06-08 19:20:06 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-06-08 19:20:06 +0200
commit00f5d36cd2aff9d1264841ee02e132aa03f1407c (patch)
tree7887cdc3a6c766844bec4eb8ccd1849c1d4d4399
parent22ae017ffd3052c0b81822b2ca6e41626b76b9c4 (diff)
downloadgobject-introspection-00f5d36cd2aff9d1264841ee02e132aa03f1407c.tar.gz
Use a default value for transfer-ownership in properties.
-rw-r--r--girepository/girparser.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 65f038ce..9823228e 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -847,13 +847,16 @@ parse_property_transfer (GIrNodeProperty *property,
{
if (transfer == NULL)
{
+#if 0
GIrNodeInterface *iface = (GIrNodeInterface *)CURRENT_NODE (ctx);
- g_warning ("required attribute 'transfer-ownership' for property '%s' in "
- "type '%s.%s'", property->node.name, ctx->namespace,
- iface->node.name);
+ g_debug ("required attribute 'transfer-ownership' is missing from "
+ "property '%s' in type '%s.%s'. Assuming 'none'\n",
+ property->node.name, ctx->namespace, iface->node.name);
+#endif
+ transfer = "none";
}
- else if (strcmp (transfer, "none") == 0)
+ if (strcmp (transfer, "none") == 0)
{
property->transfer = FALSE;
property->shallow_transfer = FALSE;