[webkit-gtk] GObject bindings ... how to add/remove DOM event listeners?
C Anthony Risinger
anthony at xtfx.me
Sun Feb 5 08:33:11 PST 2012
On Sat, Feb 4, 2012 at 12:00 PM, C Anthony Risinger <anthony at xtfx.me> wrote:
>
> Hello,
>
> I been exploring the python introspection bindings with pdb and poured over
> webkitgtk API docs, but I cannot for the life of me get a successful DOM
> event to fire my callbacks.
>
> Could someone point me in the right direction? Other methods like
> dispatch_event and release_events suggest it's possible, and I found the
> commit last March switching from signals to explicit listener functions. I
> also see add_event_listener and remove_event_listener on
> WebKit.DOMEventTargetIface ... exposed as a property() in python but ...
>
> ... how to make use? Any direction/pointer/example much appreciated.
after discussion on #webkitgtk+ and #python on irc.gnome.org, i tried
to rebuild webkit to check the error reported by g-ir-scanner, and
found this:
DerivedSources/webkit/WebKitDOMEventTarget.h:62: Warning: WebKit:
webkit_dom_event_target_add_event_listener: argument handler: Missing
(scope)
annotation for callback without GDestroyNotify (valid: call, async)
DerivedSources/webkit/WebKitDOMEventTarget.h:68: Warning: WebKit:
webkit_dom_event_target_remove_event_listener: argument handler:
Missing (scope)
annotation for callback without GDestroyNotify (valid: call, async)
... there are other errors that cause different method to be marked
`introspection=0`, but this looks to be the reason
add/remove_event_listener are failing.
--
C Anthony
More information about the webkit-gtk
mailing list