diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-06-08 16:40:35 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-06-08 17:35:12 +0200 |
commit | 22ae017ffd3052c0b81822b2ca6e41626b76b9c4 (patch) | |
tree | b280bde67eaa4096bd8a83ad539a8fe9c7c14f5c /giscanner/ast.py | |
parent | 862cdbe9ed2464c722e566238980895d08a48106 (diff) | |
download | gobject-introspection-22ae017ffd3052c0b81822b2ca6e41626b76b9c4.tar.gz |
Support the (transfer) annotation for properties.
* girepository/*: Add g_property_info_get_ownership_transfer() and write
the transfer attribute of properties into the typelib.
* giscanner/*: Parse the (transfer) annotation and write it into the .gir.
* tools/generate.c: Read the transfer annotation for properties and write
to the .tgir.
https://bugzilla.gnome.org/show_bug.cgi?id=620484
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 902a3f6f..0e9f112d 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -521,12 +521,12 @@ class Constant(Node): self.name, self.type, self.value) -class Property(Node): +class Property(TypeContainer): def __init__(self, name, type_name, readable, writable, - construct, construct_only, ctype=None): - Node.__init__(self, name) + construct, construct_only, ctype=None, transfer=None): self.type = Type(type_name, ctype) + TypeContainer.__init__(self, name, self.type, transfer) self.readable = readable self.writable = writable self.construct = construct |