Avoid reentering spi_dbus_update_cache
[platform/core/uifw/at-spi2-atk.git] / registryd / registry.c
index 7316a05..596e725 100644 (file)
@@ -75,7 +75,7 @@ static void emit(SpiRegistry *registry, const char *name, int first_type, ...)
   va_list arg;
 
   va_start(arg, first_type);
-  spi_dbus_emit_valist(registry->droute.bus, SPI_DBUS_PATH_REGISTRY, SPI_DBUS_INTERFACE_REGISTRY, name, first_type, arg);
+  spi_dbus_emit_valist(registry->droute.bus, SPI_DBUS_PATH_DESKTOP, SPI_DBUS_INTERFACE_REGISTRY, name, first_type, arg);
   va_end(arg);
 }
 
@@ -86,7 +86,7 @@ desktop_add_application (SpiDesktop *desktop,
   SpiRegistry *registry = SPI_REGISTRY (data);
   const SpiDesktopApplication *app = g_list_nth_data(desktop->applications, index);
   
-  emit(registry, "ApplicationAdd", DBUS_TYPE_UINT32, &index, DBUS_TYPE_STRING, &app->bus_name, DBUS_TYPE_INVALID);
+  emit(registry, "applicationAdd", DBUS_TYPE_UINT32, &index, DBUS_TYPE_STRING, &app->bus_name, DBUS_TYPE_INVALID);
 }
 
 
@@ -99,7 +99,7 @@ desktop_remove_application (SpiDesktop *desktop,
   SpiDesktopApplication *app = g_list_nth_data(desktop->applications, index);
   
   spi_dbus_remove_disconnect_match (registry->droute.bus, app->bus_name);
-  emit(registry, "ApplicationRemove", DBUS_TYPE_UINT32, &index, DBUS_TYPE_STRING, &app->bus_name, DBUS_TYPE_INVALID);
+  emit(registry, "applicationRemove", DBUS_TYPE_UINT32, &index, DBUS_TYPE_STRING, &app->bus_name, DBUS_TYPE_INVALID);
 }