summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index d4f251f0..f7906f2d 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -947,7 +947,10 @@ class Property(Node):
self.writable = writable
self.construct = construct
self.construct_only = construct_only
- self.transfer = PARAM_TRANSFER_NONE
+ if transfer is None:
+ self.transfer = PARAM_TRANSFER_NONE
+ else:
+ self.transfer = transfer
class Callback(Callable):