summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-02-25 18:59:41 +0100
committerGiovanni Campagna <gcampagna@src.gnome.org>2014-02-26 17:27:08 +0100
commitb7631ccface25faeb096357ab094d3193fc3f116 (patch)
tree5a7b2ab79617a43ed7f97956517a28b4d37b9206 /giscanner/girparser.py
parent1e8a4a19a4800acdc7c348943e86ed9287ea0d9c (diff)
downloadgobject-introspection-b7631ccface25faeb096357ab094d3193fc3f116.tar.gz
girparser: fix parsing of enum methods
Make sure to set the parent of the function
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py1
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)