AtkObject *parent;
gchar *path, *path_parent;
- path = atk_dbus_get_path_from_ref(GPOINTER_TO_INT(ref));
+ path = atk_dbus_get_path (obj_data);
dbus_message_iter_append_basic (&iter_struct, DBUS_TYPE_OBJECT_PATH, &path);
parent = atk_object_get_parent(obj);
{
g_free (accessible->v.path);
}
- spi_state_set_cache_unref (accessible->states);
+ if (accessible->states)
+ spi_state_set_cache_unref (accessible->states);
g_free (accessible->description);
g_free (accessible->name);
g_free(accessible);
{
return cspi_dbus_handle_update_tree (bus, message, data);
}
- if (dbus_message_is_signal (message, spi_interface_registry, "registerApplication"))
+ if (dbus_message_is_method_call (message, spi_interface_registry, "registerApplication"))
{
return cspi_dbus_handle_register_application (bus, message, data);
}
- if (dbus_message_is_signal (message, spi_interface_registry, "deregisterApplication"))
+ if (dbus_message_is_method_call (message, spi_interface_registry, "deregisterApplication"))
{
return cspi_dbus_handle_deregister_application (bus, message, data);
}
dbus_error_init (&error);
dbus_bus_add_match (bus, match, &error);
g_free (match);
- match = g_strdup_printf ("type='signal',interface='%s'", spi_interface_registry);
+ match = g_strdup_printf ("type='method_call',interface='%s'", spi_interface_registry);
dbus_bus_add_match (bus, match, &error);
g_free (match);
return 0;