[pygobject] Difficulty getting callback arguments to Python



hello,

i am working on solving an introspection bug found here:

https://bugs.webkit.org/show_bug.cgi?id=77835

... Webkit generates GObject bindings that are known to work from C,
but add/remove_event_listener are not introspectable due to missing
GDestroyNotify parameter.  when i set (scope) to async/call, or when i
change the function signature to include a GDestroyNotify, the
callback is properly called (with any scope), but it does not have any
arguments (in Python) ... even though this apparently works from C.

I am admittedly a novice in C/C++, but i understand it well enough to
usually brute force learn what i need to solve the problem.  alas,
i've been at this for nearly 5 days, and not making any real progress
... i've already bugged the #webkitgtk+ and #introspection guys too
much :-/

are there special provisions or annotations needed to allow a callback
to accept parameters?  how can i further trace the problem here?  i am
more than willing to continue trying myself, but i am in need of some
guidance.

i believe this is on-topic, if not i apologize -- please direct
appropriately if possible.  missing add/remove_event_listener makes
the Webkit bindings next to useless, for pretty much everyone i'd
imagine, as there is no way to interact with the user (cannot get the
event object!).

any assistance is beyond appreciated!

-- 

C Anthony


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