[gobject-introspection] docwriter/gjs: format GObject.Closure as "Function"
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] docwriter/gjs: format GObject.Closure as "Function"
- Date: Wed, 5 Mar 2014 16:12:55 +0000 (UTC)
commit bb42b4a72ad888d5af5cb424c07a0d746821970e
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Mar 2 17:22:55 2014 +0100
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.
giscanner/docwriter.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 230cf4c..db27105 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 + '.'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]