Call dbus_bus_register
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / bridge.c
index ba6b80b..1374b99 100644 (file)
@@ -195,10 +195,8 @@ spi_app_init (AtkObject *root)
     return NULL;
   }
   //dbus_connection_set_exit_on_disconnect(ad->droute.bus, FALSE);
-  //dbus_bus_register(ad->droute.bus, &error);
+  dbus_bus_register(ad->droute.bus, &error);
   spi_dbus_initialize (&ad->droute);
-  /* Below line for testing -- it should be removed once at-spi-registryd is working */
-  if (dbus_bus_request_name(ad->droute.bus, "test.atspi.tree", 0, &error)) printf("Got test name.\n");
   spi_register_tree_object(ad->droute.bus, &ad->droute, "/org/freedesktop/atspi/tree");
   if (!dbus_connection_try_register_fallback (ad->droute.bus, "/org/freedesktop/atspi/accessible", &droute_vtable, &ad->droute, &error))
   {