GError *err;
g_type_init ();
-
+ g_thread_init (NULL);
+
context = g_option_context_new ("Test");
g_option_context_add_main_entries (context, options, "Modest");
if (!g_option_context_parse (context, &argc, &argv, &err)) {
g_option_context_free (context);
fact = TNY_PLATFORM_FACTORY (modest_tny_platform_factory_get_instance ());
- acc_mgr = MODEST_ACCOUNT_MGR (modest_tny_platform_factory_get_modest_account_mgr_instance (fact));
+ acc_mgr = MODEST_ACCOUNT_MGR (modest_tny_platform_factory_get_account_mgr_instance (MODEST_TNY_PLATFORM_FACTORY (fact)));
account_store = tny_platform_factory_new_account_store (fact);
if (cachedir)