From 9f81ad162fd382a4e6a969d20da929b9c5aded4b Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 19 Feb 2012 17:32:00 +0100 Subject: g-ir-doc-tool: Add param information to signal pages in Python --- giscanner/mallard-Python-signal.tmpl | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/giscanner/mallard-Python-signal.tmpl b/giscanner/mallard-Python-signal.tmpl index 41c211a7..263a4034 100644 --- a/giscanner/mallard-Python-signal.tmpl +++ b/giscanner/mallard-Python-signal.tmpl @@ -9,5 +9,42 @@ ${node.name} ${namespace.name}.${node.parent.name}::${node.name} + +def callback(\ +% for arg, ix in zip(node.parameters, range(len(node.parameters))): +${arg.argname}, \ +% endfor +user_param1, ...) + ${formatter.format(node.doc)} + +% if node.parameters or node.retval: + +% for arg, ix in zip(node.parameters, range(len(node.parameters))): + + + + +% endfor + + + + + + + + +% if node.retval and \ + node.retval.type.ctype != 'void' and \ + node.retval.type.ctype is not None: + + + + +% endif +

${arg.argname} :

${formatter.format(arg.doc)}

user_param1 :

first user parameter (if any) specified with the connect() method

... :

additional user parameters (if any)

Returns :

${node.retval.type.ctype} ${formatter.format(node.retval.doc)}
+% endif +% if node.version: +

Since ${node.version}

+% endif -- cgit v1.2.1