Modified webpage: now tinymail repository is in gitorious.
[modest] / src / modest-tny-account.c
index c8fa339..67d8532 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <modest-platform.h>
+#include <modest-defs.h>
 #include <modest-tny-platform-factory.h>
 #include <modest-tny-account.h>
 #include <modest-tny-account-store.h>
 #include <tny-merge-folder.h>
 #include <modest-debug.h>
 #include <string.h>
-#ifndef MODEST_TOOLKIT_GTK
-#if MODEST_HILDON_API == 0
-#include <hildon-widgets/hildon-file-system-info.h>
-#else
+#ifdef MODEST_TOOLKIT_HILDON2
 #include <hildon/hildon-file-system-info.h>
 #endif
-#endif
 
 /* we need these dummy functions, or tinymail will complain */
 static gchar *  get_pass_dummy     (TnyAccount *account, const gchar *prompt, gboolean *cancel);
@@ -119,7 +116,7 @@ modest_tny_account_get_special_folder (TnyAccount *account,
         * returning an empty list. murrayc. */ 
        tny_folder_store_get_folders (TNY_FOLDER_STORE (local_account), folders, NULL, FALSE, &error);
        if (error) {
-               g_warning ("%s: tny_folder_store_get_folders() failed:%s\n", __FUNCTION__, error->message);
+               g_debug ("%s: tny_folder_store_get_folders() failed:%s\n", __FUNCTION__, error->message);
                g_error_free (error);
                goto cleanup;
        }
@@ -425,7 +422,7 @@ set_online_callback (TnyCamelAccount *account, gboolean canceled, GError *err, g
                                TNY_ACCOUNT (account), TNY_ALERT_TYPE_ERROR, FALSE, 
                                err);
                }
-               g_warning ("err: %s", err->message);
+               g_debug ("err: %s", err->message);
        }
 }
 
@@ -596,7 +593,7 @@ typedef struct
 
 
 
-#ifndef MODEST_TOOLKIT_GTK
+#ifdef MODEST_PLATFORM_MAEMO
 /* Gets the memory card name: */
 static void 
 on_modest_file_system_info (HildonFileSystemInfoHandle *handle,
@@ -606,7 +603,7 @@ on_modest_file_system_info (HildonFileSystemInfoHandle *handle,
        GetMmcAccountNameData *callback_data = (GetMmcAccountNameData*)data;
 
        if (error) {
-               g_warning ("%s: error=%s", __FUNCTION__, error->message);
+               g_debug ("%s: error=%s", __FUNCTION__, error->message);
        }
        
        TnyAccount *account = TNY_ACCOUNT (callback_data->account);
@@ -637,7 +634,7 @@ on_modest_file_system_info (HildonFileSystemInfoHandle *handle,
 
 void modest_tny_account_get_mmc_account_name (TnyStoreAccount* self, ModestTnyAccountGetMmcAccountNameCallback callback, gpointer user_data)
 {
-#ifndef MODEST_TOOLKIT_GTK
+#ifdef MODEST_PLATFORM_MAEMO
        /* Just use the path for the single memory card,
         * rather than try to figure out the path to the specific card by 
         * looking at the maildir URI: