summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakepost <makepost@firemail.cc>2017-12-17 18:27:09 +0200
committerrockon999 <rockon999@users.noreply.github.com>2018-08-06 02:53:46 -0500
commit78a238d75272453814f002d5b6255ea905f23771 (patch)
tree0b73c99d5b6cb48cce28812d1d51f5ab01a78666
parent13635f61c8c22d33832f3e88a0d1d728a7c748b3 (diff)
downloadgobject-introspection-78a238d75272453814f002d5b6255ea905f23771.tar.gz
docwriter: Gdk.Atom as String
Reflect new string/GdkAtom marshalling that improves clipboard support: https://gitlab.gnome.org/GNOME/gjs/merge_requests/29
-rw-r--r--giscanner/docwriter.py2
1 files changed, 2 insertions, 0 deletions
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':