X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodest-tny-local-folders-account.c;h=4be9efac21156b0ef8d1e58036e623f721a10438;hb=532ceeb70161feabf0735d754281f3a57bfdd554;hp=69ea05332954c16fa9c220b7b98b055de8d81cad;hpb=94dd9606eadbd7df971e7abc458bbbd903cdc772;p=modest diff --git a/src/modest-tny-local-folders-account.c b/src/modest-tny-local-folders-account.c index 69ea053..4be9efa 100644 --- a/src/modest-tny-local-folders-account.c +++ b/src/modest-tny-local-folders-account.c @@ -175,7 +175,7 @@ create_folder (TnyFolderStore *self, /* If the folder name is been used by our extra folders */ if (modest_tny_local_folders_account_folder_name_in_use (MODEST_TNY_LOCAL_FOLDERS_ACCOUNT (self), name)) { - g_set_error (err, TNY_SERVICE_ERROR, + g_set_error (err, TNY_ERROR_DOMAIN, TNY_SERVICE_ERROR_FOLDER_CREATE, "Folder name already in use"); return NULL; @@ -270,3 +270,16 @@ modest_tny_local_folders_account_remove_folder_from_outbox (ModestTnyLocalFolder } g_object_unref (merged_folders); } + +TnyFolder * +modest_tny_local_folders_account_get_merged_outbox (ModestTnyLocalFoldersAccount *self) +{ + ModestTnyLocalFoldersAccountPrivate *priv; + g_return_val_if_fail (MODEST_IS_TNY_LOCAL_FOLDERS_ACCOUNT (self), NULL); + + priv = TNY_LOCAL_FOLDERS_ACCOUNT_GET_PRIVATE (self); + if (priv->outbox_folder) + return g_object_ref (priv->outbox_folder); + else + return NULL; +}