summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 13:16:47 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 13:16:47 +0100
commitaec162ff6ac3cd7b00634975f98eff8e9e79fb10 (patch)
tree3e65ec7deca60cc005ae789580ebbcbb850dfad2
parent2adc4d24827c525ca3b0db9f4230b82f3b980915 (diff)
downloadgobject-introspection-aec162ff6ac3cd7b00634975f98eff8e9e79fb10.tar.gz
g-ir-doc-tool: Add links to properties in the constructor
-rw-r--r--giscanner/mallard-Python-class.tmpl4
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page2
2 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl
index d45b0ab6..feae1d11 100644
--- a/giscanner/mallard-Python-class.tmpl
+++ b/giscanner/mallard-Python-class.tmpl
@@ -22,11 +22,11 @@ ${formatter.format(node.doc)}
</tree>
</synopsis>
<p>Constructor</p>
- <synopsis><code mime="text/x-python">
+ <synopsis><code>
${formatter.to_underscores(node.name).lower()} = ${node.name}(\
% for property_, ix in zip(node.properties, range(len(node.properties))):
% if property_.construct or property_.construct_only or property_.writable:
-${property_.name.replace('-', '_')}=value\
+<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
% if ix != len(node.properties) - 1:
, \
% endif
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
index eb466270..dda72958 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
@@ -19,7 +19,7 @@
</tree>
</synopsis>
<p>Constructor</p>
- <synopsis><code mime="text/x-python">
+ <synopsis><code>
repository = Repository() </code></synopsis>
<links type="topic" ui:expanded="yes"
api:type="function" api:mime="text/x-python"