app_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_object_unref);
// TODO: change below to something that will send state-change:defunct notification if necessary */
g_warning ("Process %d sent an accessible with itself as its parent. This shouldn't happen.", pid);
g_ptr_array_index (accessible->accessible_parent->children, index) = g_object_ref (accessible);
if (!strcmp (error_name, DBUS_ERROR_SERVICE_UNKNOWN) || !strcmp (error_name, DBUS_ERROR_NO_REPLY))
g_warning ("AT-SPI: Called _atspi_dbus_return_accessible_from_message with strange signature %s", signature);
g_warning ("AT-SPI: Called _atspi_dbus_return_hyperlink_from_message with strange signature %s", signature);
else if (dbus_message_is_method_call (closure->message, atspi_interface_device_event_listener, "NotifyEvent"))
else if (dbus_message_is_signal (closure->message, atspi_interface_cache, "RemoveAccessible"))
else if (dbus_message_is_signal (closure->message, "org.freedesktop.DBus", "NameOwnerChanged"))
if (dbus_message_is_method_call (message, atspi_interface_device_event_listener, "NotifyEvent"))
match = g_strdup_printf ("type='signal',interface='%s',member='AddAccessible'", atspi_interface_cache);
match = g_strdup_printf ("type='signal',interface='%s',member='RemoveAccessible'", atspi_interface_cache);
match = g_strdup_printf ("type='signal',interface='%s',member='ChildrenChanged'", atspi_interface_event_object);
match = g_strdup_printf ("type='signal',interface='%s',member='PropertyChange'", atspi_interface_event_object);
match = g_strdup_printf ("type='signal',interface='%s',member='StateChanged'", atspi_interface_event_object);
check_for_hang (DBusMessage *message, DBusError *error, DBusConnection *bus, const char *bus_name)
diff = (tv.tv_sec - app->time_added.tv_sec) * 1000 + (tv.tv_usec - app->time_added.tv_usec) / 1000;
/* Makes a DBus call and returns a success value. Simple return values can be demarshaled automatically
* by passing their types after a "=>" marker in the @type argument (e.g. s=>i for a call that takes a string
_atspi_dbus_call (gpointer obj, const char *interface, const char *method, GError **error, const char *type, ...)
_atspi_dbus_get_property (gpointer obj, const char *interface, const char *name, GError **error, const char *type, void *data)
dbus_message_append_args (message, DBUS_TYPE_STRING, &interface, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID);
g_warning ("atspi_dbus_get_property: expected a variant when fetching %s from interface %s; got %s\n", name, interface, dbus_message_get_signature (reply));
g_warning ("atspi_dbus_get_property: Wrong type: expected %s, got %c\n", type, dbus_message_iter_get_arg_type (&iter_variant));
static const char *sr_introspection = "<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n"