cspi:
+ ensure spi-listener-impl's list notification methods don't
have a re-enterancy hazard. [Michael]
- + namespace all methods missing a prepending Accessible
- or SPI_ prefix. [Bill]
+ Put LGPL headers everywhere.
+ Fix the conversion of Accessibility_Role CORBA enum to
- AccessibleRole enums. [Bill]
+ AccessibleRole enums. [Bill]
registry:
+ move code into here from libspi [Michael]
*/
static EventHandler *
-event_handler_new (gpointer method, gpointer user_data)
+cspi_event_handler_new (gpointer method, gpointer user_data)
{
EventHandler *eh = g_new0 (EventHandler, 1);
}
static void
-event_handler_free (EventHandler *handler)
+cspi_event_handler_free (EventHandler *handler)
{
g_free (handler);
}
static GList *
-event_list_remove_by_cb (GList *list, gpointer callback)
+cspi_event_list_remove_by_cb (GList *list, gpointer callback)
{
GList *l, *next;
list = g_list_delete_link (list, l);
- event_handler_free (eh);
+ cspi_event_handler_free (eh);
}
return list;
for (l = listener->callbacks; l; l = l->next)
{
- event_handler_free (l->data);
+ cspi_event_handler_free (l->data);
}
g_list_free (listener->callbacks);
g_return_if_fail (CSPI_IS_EVENT_LISTENER (listener));
listener->callbacks = g_list_prepend (listener->callbacks,
- event_handler_new (callback, user_data));
+ cspi_event_handler_new (callback, user_data));
}
void
g_return_if_fail (CSPI_IS_EVENT_LISTENER (listener));
- listener->callbacks = event_list_remove_by_cb (listener->callbacks, callback);
+ listener->callbacks = cspi_event_list_remove_by_cb (listener->callbacks, callback);
}
/*
for (l = listener->callbacks; l; l = l->next)
{
- event_handler_free (l->data);
+ cspi_event_handler_free (l->data);
}
g_list_free (listener->callbacks);
g_return_if_fail (CSPI_IS_KEYSTROKE_LISTENER (listener));
listener->callbacks = g_list_prepend (listener->callbacks,
- event_handler_new (callback, user_data));
+ cspi_event_handler_new (callback, user_data));
}
void
g_return_if_fail (CSPI_IS_KEYSTROKE_LISTENER (listener));
- listener->callbacks = event_list_remove_by_cb (listener->callbacks, callback);
+ listener->callbacks = cspi_event_list_remove_by_cb (listener->callbacks, callback);
}
void