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, 3 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index ac180155..f1d0d689 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -315,7 +315,7 @@ class MainTransformer(object):
assert supercls
if cls is supercls:
return True
- if cls.parent:
+ if cls.parent and cls.parent.target_giname != 'GObject.Object':
return self._is_gi_subclass(cls.parent, supercls_type)
return False
@@ -638,6 +638,8 @@ class MainTransformer(object):
if target:
node.parent = parent
break
+ else:
+ node.parent = ast.Type(target_giname='GObject.Object')
for prop in node.properties:
self._transformer.resolve_type(prop.type)
for sig in node.signals: