- /* TODO: get app name and pid */
- sprintf(sbuf, "application-%s", argv[1]);
- app = application_new(sbuf, "test application for accessibility SPI", "0001");
-
- /* Create the Accessible 'source' for the event */
- atko = atk_simple_object_new ();
- atk_object_set_name (atko, "dummy");
- accessible = accessible_new (atko);
+ snprintf(sbuf, APP_STATIC_BUFF_SZ, "application-%s", argv[0]);
+
+ atko = g_object_new (atk_object_get_type(), NULL);
+ atk_object_set_name (atko, sbuf);
+ atk_object_set_description( atko, "test application for accessibility SPI");
+ app = spi_application_new(atko);
+
+ /* Create the SpiAccessible 'source' for the event */
+ accessible = spi_accessible_new (atko);