g-ir-scanner: Stop going up the hierarchy once we reach GObject
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Mon, 15 Aug 2011 09:34:20 +0000 (11:34 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Mon, 15 Aug 2011 09:34:20 +0000 (11:34 +0200)
giscanner/docbookwriter.py

index 30b15ee..822a5ab 100644 (file)
@@ -532,7 +532,7 @@ class DocBookWriter(object):
         parent_chain = []
 
         node = page_node
-        while node.parent:
+        while node.parent and node.gi_name != 'GObject.Object':
             node = self._transformer.lookup_giname(str(node.parent))
             parent_chain.append(node)