diff options
author | Colin Walters <walters@verbum.org> | 2011-01-05 16:32:44 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-01-05 16:38:36 -0500 |
commit | f132cc5dfb232815f5fefc57fcf565cad51ff1dc (patch) | |
tree | 93d80bab62b53f398a6d016cd3c86ef08c2ffd5e /giscanner/ast.py | |
parent | f99dee8efd9fd3125273b644b7ebea98626eb664 (diff) | |
download | gobject-introspection-f132cc5dfb232815f5fefc57fcf565cad51ff1dc.tar.gz |
scanner: Fix handling of property transfer
* gdumpparser.py was incorrectly passing the ctype for transfer
* Property constructor wasn't actually doing anything with passed transfer
* Parse transfer-ownership in girparser
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 5 |
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): |