#include "atspi-private.h"
#include <string.h>
+#include <ctype.h>
typedef struct
{
{
event->source->children = g_list_remove (event->source->children, child);
if (child == child->parent.app->root)
- g_object_run_dispose (child->parent.app);
+ g_object_run_dispose (G_OBJECT (child->parent.app));
g_object_unref (child);
}
}
gchar *tmp = strdup_and_adjust_for_dbus (eventType);
char *category = NULL, *name = NULL, *detail = NULL;
char *saveptr = NULL;
- char *p;
if (tmp == NULL) return FALSE;
category = strtok_r (tmp, ":", &saveptr);
static void
listener_entry_free (EventListenerEntry *e)
{
- gpointer callback = (e->callback = remove_datum ? e->user_data : e->callback);
+ gpointer callback = (e->callback == remove_datum ? e->user_data : e->callback);
g_free (e->category);
g_free (e->name);
if (e->detail) g_free (e->detail);
/* TODO: Set error */
}
- dbus_error_init (&error);
+ dbus_error_init (&d_error);
message = dbus_message_new_method_call (atspi_bus_registry,
atspi_path_registry,
atspi_interface_registry,
"RegisterEvent");
if (!message)
- return;
+ return FALSE;
dbus_message_append_args (message, DBUS_TYPE_STRING, &event_type, DBUS_TYPE_INVALID);
reply = _atspi_dbus_send_with_reply_and_block (message, error);
if (reply)
const gchar *event_type,
GError **error)
{
- atspi_event_listener_deregister_from_callback (listener->callback,
- listener->user_data,
- event_type, error);
+ return atspi_event_listener_deregister_from_callback (listener->callback,
+ listener->user_data,
+ event_type, error);
}
/**
atspi_interface_registry,
"RegisterEvent");
if (!message)
- return;
+ return FALSE;
dbus_message_append_args (message, DBUS_TYPE_STRING, &event_type, DBUS_TYPE_INVALID);
reply = _atspi_dbus_send_with_reply_and_block (message, error);
dbus_message_unref (reply);
if (strcmp (signature, "siiv(so)") != 0)
{
g_warning (_("Got invalid signature %s for signal %s from interface %s\n"), signature, member, category);
- return;
+ return DBUS_HANDLER_RESULT_HANDLED;
}
memset (&e, 0, sizeof (e));