X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account.c;h=67d85320db89f81bc3384f1ef10651ebdd5ad854;hp=cd7abdbe6b3767af4f5ee8fc97739a24a998b171;hb=3187a4d50cb38def3ccbcbf0b69e60d08a5bf828;hpb=2cf79da876de90e1c70bd347eb02cd1d8d3743eb diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index cd7abdb..67d8532 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -28,6 +28,7 @@ */ #include +#include #include #include #include @@ -48,13 +49,9 @@ #include #include #include -#ifndef MODEST_TOOLKIT_GTK -#if MODEST_HILDON_API == 0 -#include -#else +#ifdef MODEST_TOOLKIT_HILDON2 #include #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; } @@ -361,6 +358,7 @@ modest_tny_account_new_from_server_account_name (ModestAccountMgr *account_mgr, ModestProtocol *protocol; const gchar* proto_name = NULL; tny_account_set_id (tny_account, server_account_name); + tny_account_set_name (tny_account, server_account_name); tny_camel_account_set_session (TNY_CAMEL_ACCOUNT (tny_account), session); protocol = modest_protocol_registry_get_protocol_by_type (protocol_registry, modest_server_account_settings_get_protocol (server_settings)); proto_name = modest_protocol_get_name (protocol); @@ -424,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); } } @@ -595,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, @@ -605,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); @@ -636,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: