API changes to device and event listeners for compatibility with js
authorMike Gorse <mgorse@novell.com>
Wed, 6 Jul 2011 21:01:21 +0000 (16:01 -0500)
committerMike Gorse <mgorse@novell.com>
Wed, 6 Jul 2011 21:01:21 +0000 (16:01 -0500)
commitf7348a266a6afd8aa482b923444144ca54abb54c
treedbb96aef47e6ab44cb249cc13dea43c4c1ecce71
parent1a24e479e403f36e29f551d17386381e60684b7e
API changes to device and event listeners for compatibility with js

Skip atspi_device_listener_new_simple and
atspi-event_listener_new_simple, since Javascript throws an error for
callback functions that don't provide user_data.
Add atspi_event_listener_new.
Change order of user_data and destroy notify parameters in
atspi_device_listener_new to match the order used other places in GNOME.
The old order was triggering an IndexError because of what appears to be
a bug in pygobject.  Note that this is an API change and would
ordinarily be a bad idea, but at this point I don't know of anyone using
libatspi directly, so going to commit it.
Some introspection fixes.
atspi/atspi-device-listener.c
atspi/atspi-device-listener.h
atspi/atspi-event-listener.c
atspi/atspi-event-listener.h