diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-02-25 18:59:41 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-02-26 17:27:08 +0100 |
commit | b7631ccface25faeb096357ab094d3193fc3f116 (patch) | |
tree | 5a7b2ab79617a43ed7f97956517a28b4d37b9206 /giscanner | |
parent | 1e8a4a19a4800acdc7c348943e86ed9287ea0d9c (diff) | |
download | gobject-introspection-b7631ccface25faeb096357ab094d3193fc3f116.tar.gz |
girparser: fix parsing of enum methods
Make sure to set the parent of the function
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/girparser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py index 25e9035d..cac166d0 100644 --- a/giscanner/girparser.py +++ b/giscanner/girparser.py @@ -585,5 +585,6 @@ class GIRParser(object): members.append(member) for func_node in self._find_children(node, _corens('function')): func = self._parse_function_common(func_node, ast.Function) + func.parent = obj obj.static_methods.append(func) self._namespace.append(obj) |