* add files for maemo
[modest] / tests / check_folder-transfer.c
index 80822bb..18fd3da 100644 (file)
@@ -114,7 +114,8 @@ main (int argc, char **argv)
        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)) {
@@ -125,7 +126,7 @@ main (int argc, char **argv)
        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)