[gobject-introspection] g-ir-doc-tool: Add class to its own hierarchy tree



commit b0a7d14a253be4a6c93eb9211a3c25469fa2211e
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Tue Feb 21 16:41:21 2012 +0100

    g-ir-doc-tool: Add class to its own hierarchy tree

 giscanner/mallardwriter.py                         |    2 +-
 .../DocExamples.Obj.page                           |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 5fd9704..a7154b5 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -121,7 +121,7 @@ class MallardFormatter(object):
         return to_underscores(string)
 
     def get_class_hierarchy(self, node):
-        parent_chain = []
+        parent_chain = [node]
 
         while node.parent:
             node = self._transformer.lookup_giname(str(node.parent))
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
index 3fd5125..cab691e 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
@@ -22,6 +22,9 @@ obj = DocExamples.Obj(<link xref='DocExamples.Obj-property-example'>property_exa
     <tree>
       <item>
         <code>GObject.Object</code>
+      <item>
+        <code>DocExamples.Obj</code>
+      </item>
       </item>
     </tree>
   </synopsis>



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