summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 13:21:40 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 13:21:40 +0100
commit2a159369403da1e8ccd780f3e630f7963ad1fa96 (patch)
treed00edb041cbf6549eecef1209fffa5562c2b7915
parentaec162ff6ac3cd7b00634975f98eff8e9e79fb10 (diff)
downloadgobject-introspection-2a159369403da1e8ccd780f3e630f7963ad1fa96.tar.gz
g-ir-doc-tool: Qualify the class name in the constructor with the module name
-rw-r--r--giscanner/mallard-Python-class.tmpl2
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page2
2 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl
index feae1d11..5437fcd4 100644
--- a/giscanner/mallard-Python-class.tmpl
+++ b/giscanner/mallard-Python-class.tmpl
@@ -23,7 +23,7 @@ ${formatter.format(node.doc)}
</synopsis>
<p>Constructor</p>
<synopsis><code>
-${formatter.to_underscores(node.name).lower()} = ${node.name}(\
+${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\
% for property_, ix in zip(node.properties, range(len(node.properties))):
% if property_.construct or property_.construct_only or property_.writable:
<link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
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 dda72958..a5dd47ba 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
@@ -20,7 +20,7 @@
</synopsis>
<p>Constructor</p>
<synopsis><code>
-repository = Repository() </code></synopsis>
+repository = GIRepository.Repository() </code></synopsis>
<links type="topic" ui:expanded="yes"
api:type="function" api:mime="text/x-python"
groups="method" style="linklist">