[gobject-introspection] girparser: fix parsing of enum methods



commit b7631ccface25faeb096357ab094d3193fc3f116
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Feb 25 18:59:41 2014 +0100

    girparser: fix parsing of enum methods
    
    Make sure to set the parent of the function

 giscanner/girparser.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 25e9035..cac166d 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]