diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-03-02 17:22:55 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@gnome.org> | 2014-03-05 17:12:39 +0100 |
commit | bb42b4a72ad888d5af5cb424c07a0d746821970e (patch) | |
tree | e21f783a3f6d7844a6776b4374c0705d795af968 /giscanner/docwriter.py | |
parent | b37385ce894bd6fa8d931c9b886f5eb1bf3376d2 (diff) | |
download | gobject-introspection-bb42b4a72ad888d5af5cb424c07a0d746821970e.tar.gz |
docwriter/gjs: format GObject.Closure as "Function"
GClosures are represented in gjs as JS functions for in
parameters, so it makes sense to use Function in place of
the boxed structure (which is also not part of the documentation)
Note that GClosures returned from C code are marshalled
as boxed types, but this is a gjs bug really, and JS code
should never touch them.
Diffstat (limited to 'giscanner/docwriter.py')
-rw-r--r-- | giscanner/docwriter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py index 230cf4c3..db271052 100644 --- a/giscanner/docwriter.py +++ b/giscanner/docwriter.py @@ -708,6 +708,8 @@ class DocFormatterGjs(DocFormatterIntrospectableBase): return 'ByteArray' if giname == 'GObject.Value': return 'Any' + if giname == 'GObject.Closure': + return 'Function' if link: nsname = self._transformer.namespace.name if giname.startswith(nsname + '.'): |