[gobject-introspection: 24/30] docwriter: Gdk.Atom as String



commit 78a238d75272453814f002d5b6255ea905f23771
Author: makepost <makepost firemail cc>
Date:   Sun Dec 17 18:27:09 2017 +0200

    docwriter: Gdk.Atom as String
    
    Reflect new string/GdkAtom marshalling that improves clipboard support: 
https://gitlab.gnome.org/GNOME/gjs/merge_requests/29

 giscanner/docwriter.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 6b14f72b..38102bf8 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -881,6 +881,8 @@ class DocFormatterGjs(DocFormatterIntrospectableBase):
             return "void"
         elif type_.target_giname is not None:
             giname = type_.target_giname
+            if giname == 'Gdk.Atom':
+                return 'String'
             if giname in ('GLib.ByteArray', 'GLib.Bytes'):
                 return 'ByteArray'
             if giname == 'GObject.Value':


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