summaryrefslogtreecommitdiff
path: root/giscanner
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 /giscanner
parent2adc4d24827c525ca3b0db9f4230b82f3b980915 (diff)
downloadgobject-introspection-aec162ff6ac3cd7b00634975f98eff8e9e79fb10.tar.gz
g-ir-doc-tool: Add links to properties in the constructor
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/mallard-Python-class.tmpl4
1 files changed, 2 insertions, 2 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