summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-03-02 17:22:55 +0100
committerGiovanni Campagna <gcampagna@gnome.org>2014-03-05 17:12:39 +0100
commitbb42b4a72ad888d5af5cb424c07a0d746821970e (patch)
treee21f783a3f6d7844a6776b4374c0705d795af968
parentb37385ce894bd6fa8d931c9b886f5eb1bf3376d2 (diff)
downloadgobject-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.
-rw-r--r--giscanner/docwriter.py2
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 + '.'):