[gobject-introspection] docwriter/gjs: format GObject.Value as "Any"



commit baa2992fd2291157808e9ff5b5387de29a61a773
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Mar 2 14:23:43 2014 +0100

    docwriter/gjs: format GObject.Value as "Any"
    
    GValues are transparently marshalled by GJS, so you can
    never use them as boxed (and they are not part of the
    documentation as such).

 giscanner/docwriter.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 4e99477..1a82bc7 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -706,6 +706,8 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
             giname = type_.target_giname
             if giname in ('GLib.ByteArray', 'GLib.Bytes'):
                 return 'ByteArray'
+            if giname == 'GObject.Value':
+                return 'Any'
             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]