summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Python/signal.tmpl
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-02 11:24:13 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-11 12:34:52 -0500
commitc9450dc3d7e2f87fa980923594736621f0ecd6ae (patch)
tree6f1f986fe8fb00dcc83014a745e85a1b73345dc5 /giscanner/doctemplates/Python/signal.tmpl
parentff80c6d88a28b26576508ab891c9b9da0b13ac49 (diff)
downloadgobject-introspection-c9450dc3d7e2f87fa980923594736621f0ecd6ae.tar.gz
docwriter: Define a new formatter method for getting params
This will let us gracefully skip over parameters that aren't exposed by specific language bindings. It also fixes a bug in the C/Python documentation where we weren't iterating over the right parameters.
Diffstat (limited to 'giscanner/doctemplates/Python/signal.tmpl')
-rw-r--r--giscanner/doctemplates/Python/signal.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/doctemplates/Python/signal.tmpl b/giscanner/doctemplates/Python/signal.tmpl
index abb3a3ae..0df13f64 100644
--- a/giscanner/doctemplates/Python/signal.tmpl
+++ b/giscanner/doctemplates/Python/signal.tmpl
@@ -6,7 +6,7 @@
<%block name="synopsis">
<synopsis><code mime="text/x-python">
def callback(${formatter.to_underscores(node.parent.name).lower()}, \
-% for arg in node.parameters:
+% for arg in formatter.get_parameters(node):
${arg.argname}, \
% endfor
user_param1, ...)
@@ -16,7 +16,7 @@ user_param1, ...)
<dl>
<dt><p>${formatter.to_underscores(node.parent.name).lower()} :</p></dt>
<dd><p>instance of ${namespace.name}.${node.parent.name} that is emitting the signal</p></dd>
-% for arg in node.parameters:
+% for arg in formatter.get_parameters(node):
<dt><p>${arg.argname} :</p></dt>
<dd>${formatter.format(node, arg.doc)}</dd>
% endfor