Use a default value for transfer-ownership in properties.

This commit is contained in:
Tomeu Vizoso 2010-06-08 19:20:06 +02:00
parent 518765acf3
commit ba97c98827

View File

@ -847,13 +847,16 @@ parse_property_transfer (GIrNodeProperty *property,
{ {
if (transfer == NULL) if (transfer == NULL)
{ {
#if 0
GIrNodeInterface *iface = (GIrNodeInterface *)CURRENT_NODE (ctx); GIrNodeInterface *iface = (GIrNodeInterface *)CURRENT_NODE (ctx);
g_warning ("required attribute 'transfer-ownership' for property '%s' in " g_debug ("required attribute 'transfer-ownership' is missing from "
"type '%s.%s'", property->node.name, ctx->namespace, "property '%s' in type '%s.%s'. Assuming 'none'\n",
iface->node.name); 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->transfer = FALSE;
property->shallow_transfer = FALSE; property->shallow_transfer = FALSE;