summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index cab38070..91c65597 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -822,6 +822,7 @@ class Compound(Node, Registered):
def add_gtype(self, gtype_name, get_type):
self.gtype_name = gtype_name
self.get_type = get_type
+ self.namespace.type_names[gtype_name] = self
def _walk(self, callback, chain):
for ctor in self.constructors: