summaryrefslogtreecommitdiff
path: root/giscanner/maintransformer.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r--giscanner/maintransformer.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index fd0cc6c6..0fa89051 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -820,10 +820,8 @@ the ones that failed to resolve removed."""
node.parent = parent
break
else:
- if isinstance(node, ast.Interface) or not node.fundamental:
+ if isinstance(node, ast.Interface):
node.parent = ast.Type(target_giname='GObject.Object')
- else:
- node.parent = None
for prop in node.properties:
self._transformer.resolve_type(prop.type)
for sig in node.signals: