summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-17 14:14:09 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commitf83e75ddb971561503dd3afb58edbaa2aaf6dc0e (patch)
treec64f069437b9e77798229a31d6b6f303637e016f /giscanner/girparser.py
parentb058ccaedad3c4d353abf3c1d0b490579e246fd0 (diff)
downloadgobject-introspection-f83e75ddb971561503dd3afb58edbaa2aaf6dc0e.tar.gz
Add annotations for property setters and getters
We need new annotations to allow library developers to associate a setter and a getter functions to a property definition.
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index a20de210..d9cda8d2 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -606,8 +606,10 @@ class GIRParser(object):
node.attrib.get('construct') == '1',
node.attrib.get('construct-only') == '1',
node.attrib.get('transfer-ownership'))
- self._parse_generic_attribs(node, prop)
+ prop.setter = node.attrib.get('setter')
+ prop.getter = node.attrib.get('getter')
prop.parent = parent
+ self._parse_generic_attribs(node, prop)
return prop
def _parse_member(self, node):