Re: Questions debugging introspection Gtk bindings



On 6 December 2017 at 09:53, Jaap Karssenberg
<jaap karssenberg gmail com> wrote:
Hi all,

a/ Does the above hypothesis make sense, or am I on a wild goose chase?

Your analysis looks sensible, and looking at the code for gtk 3.22.20,
the  GtkTextBufferSerializeFunc annotations are missing any sort of
(array) annotation for the return value, so I'm pretty sure you've
identified the problem correctly.

(for reference,
https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations/
covers the annotation syntax)

b/ How can I change the annotation and test the result?

You'd have to compile the XML annotations file into a typelib file
using g-ir-compiler, so the python bindings can pick them up correctly
(I've never done this personally though, so I don't know if there any
extra complications to be aware of)


Since the annotations are faulty, filing a bug report against gtk
should be enough to get this fixed, but there is a significant problem
in this case - the whole API was removed in the following recent
commit to gtk master

https://git.gnome.org/browse/gtk+/commit/?id=3d4743ee62673415d3872d215fa472e883f5158f

(log message: "textview: Remove serialization API")

I don't follow gtk development closely enough to know what's meant to
replace this API.

-- 
Neil Muller
drnlmuller gmail com

I've got a gmail account. Why haven't I become cool?


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