summaryrefslogtreecommitdiff
path: root/atspi/atspi-device-listener.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2011-07-06 16:01:21 -0500
committerMike Gorse <mgorse@novell.com>2011-07-06 16:01:21 -0500
commitf7348a266a6afd8aa482b923444144ca54abb54c (patch)
treedbb96aef47e6ab44cb249cc13dea43c4c1ecce71 /atspi/atspi-device-listener.h
parent1a24e479e403f36e29f551d17386381e60684b7e (diff)
downloadat-spi2-core-f7348a266a6afd8aa482b923444144ca54abb54c.tar.gz
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.
Diffstat (limited to 'atspi/atspi-device-listener.h')
-rw-r--r--atspi/atspi-device-listener.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/atspi/atspi-device-listener.h b/atspi/atspi-device-listener.h
index 2cf06bcb..169738c9 100644
--- a/atspi/atspi-device-listener.h
+++ b/atspi/atspi-device-listener.h
@@ -80,7 +80,7 @@ struct _AtspiDeviceListenerClass
GType atspi_device_listener_get_type (void);
-AtspiDeviceListener *atspi_device_listener_new (AtspiDeviceListenerCB callback, GDestroyNotify callback_destroyed, void *user_data);
+AtspiDeviceListener *atspi_device_listener_new (AtspiDeviceListenerCB callback, void *user_data, GDestroyNotify callback_destroyed);
AtspiDeviceListener *atspi_device_listener_new_simple (AtspiDeviceListenerSimpleCB callback, GDestroyNotify callback_destroyed);