[gobject-introspection] docwriter/gjs: fix boolean return values
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] docwriter/gjs: fix boolean return values
- Date: Wed, 5 Mar 2014 16:13:05 +0000 (UTC)
commit 904df9a3012441086d34a237032b5b353eaace04
Author: Giovanni Campagna <gcampagna gnome org>
Date: Wed Mar 5 17:07:14 2014 +0100
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: ....
giscanner/docwriter.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 7852289..d888c81 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]