mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56: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 (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;
|
||||||
|
Loading…
Reference in New Issue
Block a user