summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@gnome.org>2014-03-05 17:07:14 +0100
committerGiovanni Campagna <gcampagna@gnome.org>2014-03-05 17:12:39 +0100
commit904df9a3012441086d34a237032b5b353eaace04 (patch)
treeea79abff3fdb1c32cc6b9a64f01098329703cef3
parent9395abd2b1b497455a3cf8c06d8b7b295bffc233 (diff)
downloadgobject-introspection-904df9a3012441086d34a237032b5b353eaace04.tar.gz
docwriter/gjs: fix boolean return values
'ok' != 'return_value', and we never restore 'Returns:'. At the same time, do the same fix for (out) parameters if the return value is void, so this void my_object_get_foo (MyObject *object, Foo *) is turned into function get_foo() : Foo Returns: ....
-rw-r--r--giscanner/docwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 7852289a..d888c81b 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -788,7 +788,7 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
if param not in skip:
params.append(param)
- if len(params) == 1 and params[0].argname == 'return_value':
+ if len(params) == 1:
params[0].argname = 'Returns'
return params