}
static AtspiDeviceEvent *
-atspi_device_event_copy (AtspiDeviceEvent *src)
+atspi_device_event_copy (const AtspiDeviceEvent *src)
{
AtspiDeviceEvent *dst = g_new0 (AtspiDeviceEvent, 1);
dst->type = src->type;
}
/**
- * atspi_device_listener_new_simple:
+ * atspi_device_listener_new_simple: (skip)
* @callback: (scope notified): an #AtspiDeviceListenerCB callback function,
* or NULL.
* @callback_destroyed: A #GDestroyNotify called when the listener is freed
atspi_device_listener_new_simple (AtspiDeviceListenerSimpleCB callback,
GDestroyNotify callback_destroyed)
{
- return atspi_device_listener_new (device_remove_datum, callback_destroyed, callback);
+ return atspi_device_listener_new (device_remove_datum, callback, callback_destroyed);
}
/**
*
* Adds an in-process callback function to an existing #AtspiDeviceListener.
*
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
**/
void
atspi_device_listener_add_callback (AtspiDeviceListener *listener,
* Removes an in-process callback function from an existing
* #AtspiDeviceListener.
*
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
**/
void
atspi_device_listener_remove_callback (AtspiDeviceListener *listener,
if (strcmp (dbus_message_get_signature (message), "(uiuuisb)") != 0)
{
- g_warning ("Atspi: Unknown signature for an event");
+ g_warning ("AT-SPI: Unknown signature for an event");
goto done;
}
if (sscanf (path, "/org/a11y/atspi/listeners/%d", &id) != 1)
{
- g_warning ("Atspi: Bad listener path: %s\n", path);
+ g_warning ("AT-SPI: Bad listener path: %s\n", path);
goto done;
}
retval = (*klass->device_event) (listener, &event);
if (retval != 0 && retval != 1)
{
- g_warning ("at-spi: device event handler returned %d; should be 0 or 1", retval);
+ g_warning ("AT-SPI: device event handler returned %d; should be 0 or 1", retval);
retval = 0;
}
}