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/girparser.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/girparser.py')
-rw-r--r-- | giscanner/girparser.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py index 6f6518c3..bcf68bfd 100644 --- a/giscanner/girparser.py +++ b/giscanner/girparser.py @@ -415,7 +415,8 @@ class GIRParser(object): return ast.TypeUnknown() return ast.Type(ctype=ctype) elif name in ['GLib.List', 'GLib.SList']: - subchild = self._find_first_child(typenode, map(_corens, ('callback', 'array', 'varargs', 'type'))) + subchild = self._find_first_child(typenode, + map(_corens, ('callback', 'array', 'varargs', 'type'))) if subchild is not None: element_type = self._parse_type(typenode) else: @@ -509,7 +510,8 @@ class GIRParser(object): node.attrib.get('readable') != '0', node.attrib.get('writable') == '1', node.attrib.get('construct') == '1', - node.attrib.get('construct-only') == '1') + node.attrib.get('construct-only') == '1', + node.attrib.get('transfer-ownership')) self._parse_generic_attribs(node, prop) return prop |