/**
* atspi_event_listener_new:
- * @callback: (scope notified): An #AtspiEventListenerSimpleCB to be called
+ * @callback: (scope notified): An #AtspiEventListenerCB to be called
* when an event is fired.
* @user_data: (closure): data to pass to the callback.
* @callback_destroyed: A #GDestroyNotify called when the listener is freed
{
EventListenerEntry *e;
DBusError d_error;
- DBusMessage *message, *reply;
GPtrArray *matchrule_array;
gint i;
if (!listener_detail)
return TRUE;
+ if (!event_detail)
+ return (listener_detail ? FALSE : TRUE);
+
return !(listener_detail [strcspn (listener_detail, ":")] == '\0'
? strncmp (listener_detail, event_detail,
strcspn (event_detail, ":"))