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"))