[gobject-introspection] docwriter.py: change DocFormatterGjs to return Uint8Array



commit 2d145b9edea832621276be85b00e1ea3be376964
Author: Andy Holmes <andrew g r holmes gmail com>
Date:   Tue Nov 23 11:46:46 2021 -0800

    docwriter.py: change DocFormatterGjs to return Uint8Array
    
    GJS now maps GLib.ByteArray and GLib.Bytes to Uint8Array whenever
    possible. Change the string returned by docwriter for devdocs to
    reflect that.

 giscanner/docwriter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 786da80d..d0cd610f 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -945,7 +945,7 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
             if giname == 'Gdk.Atom':
                 return 'String'
             if giname in ('GLib.ByteArray', 'GLib.Bytes'):
-                return 'ByteArray'
+                return 'Uint8Array'
             if giname == 'GObject.Value':
                 return 'Any'
             if giname == 'GObject.Closure':


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]