diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 16:22:16 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 17:09:28 +0100 |
commit | c383f8569a58d91de9e64d78b777d1a3925c3780 (patch) | |
tree | fd4c378b31714d5d39d1ed5b8180aa1d1b71f851 /giscanner | |
parent | 52c07daf1fa3a5d17957cc3e3d0d75c65b268b57 (diff) | |
download | gobject-introspection-c383f8569a58d91de9e64d78b777d1a3925c3780.tar.gz |
g-ir-doc-tool: Add the first argument of signals to the Python docs
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/mallard-Python-signal.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/giscanner/mallard-Python-signal.tmpl b/giscanner/mallard-Python-signal.tmpl index 7dcbb0cd..fed0659f 100644 --- a/giscanner/mallard-Python-signal.tmpl +++ b/giscanner/mallard-Python-signal.tmpl @@ -10,7 +10,7 @@ </info> <title>${namespace.name}.${node.parent.name}::${node.name}</title> <synopsis><code mime="text/x-python"> -def callback(\ +def callback(${formatter.to_underscores(node.parent.name).lower()}, \ % for arg, ix in zip(node.parameters, range(len(node.parameters))): ${arg.argname}, \ % endfor @@ -18,8 +18,11 @@ user_param1, ...) </code></synopsis> ${formatter.format(node.doc)} -% if node.parameters or node.retval: <table> +<tr> +<td><p>${formatter.to_underscores(node.parent.name).lower()} :</p></td> +<td><p>instance of ${namespace.name}.${node.parent.name} that is emitting the signal</p></td> +</tr> % for arg, ix in zip(node.parameters, range(len(node.parameters))): <tr> <td><p>${arg.argname} :</p></td> @@ -43,7 +46,6 @@ ${formatter.format(node.doc)} </tr> % endif </table> -% endif % if node.version: <p>Since ${node.version}</p> % endif |