GError *err = NULL;
DBusError error;
DBusConnection *bus;
+ AtkObject *root;
gchar *introspection_directory;
DRoutePath *treepath, *accpath;
+ root = atk_get_root ();
+ g_return_val_if_fail (root, 0);
+
/* Parse command line options */
opt = g_option_context_new(NULL);
g_option_context_add_main_entries(opt, atspi_option_entries, NULL);
/* Allocate global data and do ATK initializations */
atk_adaptor_app_data = g_new0 (SpiAppData, 1);
atk_misc = atk_misc_get_instance ();
- atk_adaptor_app_data->root = atk_get_root();
+ atk_adaptor_app_data->root = root;
/* Set up D-Bus connection and register bus name */
dbus_error_init (&error);