if (!spi_global_app_data->events_initialized)
return TRUE;
- data [0] = ensure_proper_format (klass + 21);
+ data [0] = ensure_proper_format (klass[0] ? klass + 21 : klass);
data [1] = ensure_proper_format (major);
data [2] = ensure_proper_format (minor);
data [3] = NULL;
* this instead, so that we don't send these if no one is listening */
if (!g_strcmp0 (data [1], "ChildrenChanged") ||
((!g_strcmp0 (data [1], "PropertyChange")) &&
- (!g_strcmp0 (data [2], "accessible-name") ||
- !g_strcmp0 (data [2], "accessible-description") ||
- !g_strcmp0 (data [2], "accessible-parent") ||
- !g_strcmp0 (data [2], "accessible-role"))) ||
+ (!g_strcmp0 (data [2], "AccessibleName") ||
+ !g_strcmp0 (data [2], "AccessibleDescription") ||
+ !g_strcmp0 (data [2], "AccessibleParent") ||
+ !g_strcmp0 (data [2], "AccessibleRole"))) ||
!g_strcmp0 (data [1], "StateChanged"))
{
if (minor && !g_strcmp0 (minor, "defunct"))
AtkObject *accessible;
GSignalQuery signal_query;
const gchar *name, *minor;
- gint detail1 = 0, detail2 = 0;
g_signal_query (signal_hint->signal_id, &signal_query);
name = signal_query.signal_name;
accessible = ATK_OBJECT (g_value_get_object (¶m_values[0]));
minor = g_quark_to_string (signal_hint->detail);
- if (G_VALUE_TYPE (¶m_values[1]) == G_TYPE_INT)
- detail1 = g_value_get_int (¶m_values[1]);
-
- if (G_VALUE_TYPE (¶m_values[2]) == G_TYPE_INT)
- detail2 = g_value_get_int (¶m_values[2]);
-
- emit_event (accessible, ITF_EVENT_OBJECT, name, minor, detail1, detail2,
+ emit_event (accessible, ITF_EVENT_OBJECT, name, minor, 0, 0,
DBUS_TYPE_STRING_AS_STRING, "", append_basic);
return TRUE;
}