summaryrefslogtreecommitdiff
path: root/giscanner/mallard-Python-class.tmpl
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 16:57:14 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 16:57:14 +0100
commit5cb2864c612e06c430e81037a9ff58b30409bebe (patch)
tree791293283e6fb3ef385addc1a77e451b7019f019 /giscanner/mallard-Python-class.tmpl
parenteb87a304de537271ccc1d0d5406fe5ca32d29675 (diff)
downloadgobject-introspection-5cb2864c612e06c430e81037a9ff58b30409bebe.tar.gz
g-ir-doc-tool: Display the hierarchy tree for classes
Diffstat (limited to 'giscanner/mallard-Python-class.tmpl')
-rw-r--r--giscanner/mallard-Python-class.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl
index 489a4295..62feb9ab 100644
--- a/giscanner/mallard-Python-class.tmpl
+++ b/giscanner/mallard-Python-class.tmpl
@@ -29,12 +29,16 @@ ${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(
% if node.version:
<p>Since ${node.version}</p>
% endif
- <synopsis ui:expanded="no">
+ <synopsis>
<title>Hierarchy</title>
<tree>
+% for class_ in formatter.get_class_hierarchy(node):
<item>
- <code>GObject.Object</code>
+ <code>${class_.namespace.name}.${class_.name}</code>
+% endfor
+% for class_ in formatter.get_class_hierarchy(node):
</item>
+% endfor
</tree>
</synopsis>
<links type="topic" ui:expanded="yes"