mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Use a default value for transfer-ownership in properties.
This commit is contained in:
parent
518765acf3
commit
ba97c98827
11
girparser.c
11
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;
|
||||
|
Loading…
Reference in New Issue
Block a user