summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/Python/signal.tmpl
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-09-04 16:13:21 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-09-04 16:13:21 +0000
commita194122be492fbddd8748fe323a648434a866c36 (patch)
treef39293588b7922faa40f0c6b985a031f8f5cf0ae /giscanner/doctemplates/Python/signal.tmpl
parent8a2a9f9db169eaaf2a7eede18e0ceba0af44345f (diff)
parent85d02d59f101f9eb37829b16a81890ef9801824a (diff)
downloadgobject-introspection-a194122be492fbddd8748fe323a648434a866c36.tar.gz
merge with GOBJECT_INTROSPECTION_1_37_6baserock/jonathan/fix-giscanner
Diffstat (limited to 'giscanner/doctemplates/Python/signal.tmpl')
-rw-r--r--giscanner/doctemplates/Python/signal.tmpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/giscanner/doctemplates/Python/signal.tmpl b/giscanner/doctemplates/Python/signal.tmpl
new file mode 100644
index 00000000..dc931107
--- /dev/null
+++ b/giscanner/doctemplates/Python/signal.tmpl
@@ -0,0 +1,42 @@
+<%inherit file="/base.tmpl"/>
+<%block name="info">
+ ${formatter.format_xref(node.parent, type="guide", group=page_kind)}
+ <title type="link" role="topic">${node.name}</title>
+</%block>
+<%block name="synopsis">
+<synopsis><code mime="text/x-python">
+def callback(${formatter.to_underscores(node.parent.name).lower()}, \
+% for arg in formatter.get_parameters(node):
+${arg.argname}, \
+% endfor
+user_param1, ...)
+</code></synopsis>
+</%block>
+<%block name="details">
+<terms>
+<item>
+<title><code>${formatter.to_underscores(node.parent.name).lower()}</code></title>
+<p>instance of ${formatter.format_xref(node.parent)} that is emitting the signal</p>
+</item>
+% for arg in formatter.get_parameters(node):
+<item>
+<title><code>${arg.argname}</code></title>
+${formatter.format(node, arg.doc)}
+</item>
+% endfor
+<title><code>user_param1</code></title>
+<p>first user parameter (if any) specified with the connect() method</p>
+<item>
+<title><code>...</code></title>
+<p>additional user parameters (if any)</p>
+</item>
+% if node.retval and \
+ node.retval.type.ctype != 'void' and \
+ node.retval.type.ctype is not None:
+<item>
+<title><code>Returns</code></title>
+${formatter.format(node, node.retval.doc)}
+</item>
+% endif
+</terms>
+</%block>