On Sat, Feb 4, 2012 at 12:00 PM, C Anthony Risinger <[email protected]> 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 _______________________________________________ webkit-gtk mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
