[geary/wip/no-drafts-724395: 2/2] Special-case trash too



commit 0f48ffa69c2ada7ed499e9fda0eab05a4c64cd85
Author: Charles Lindsay <chaz yorba org>
Date:   Fri Feb 14 18:00:59 2014 -0800

    Special-case trash too

 po/POTFILES.in                                     |    1 -
 src/CMakeLists.txt                                 |    1 -
 .../gmail/imap-engine-gmail-account.vala           |    3 ++-
 .../gmail/imap-engine-gmail-drafts-folder.vala     |   17 -----------------
 4 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 84db1af..361fce6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -188,7 +188,6 @@ src/engine/imap-db/outbox/smtp-outbox-folder-properties.vala
 src/engine/imap-db/outbox/smtp-outbox-folder-root.vala
 src/engine/imap-db/outbox/smtp-outbox-folder.vala
 src/engine/imap-engine/gmail/imap-engine-gmail-account.vala
-src/engine/imap-engine/gmail/imap-engine-gmail-drafts-folder.vala
 src/engine/imap-engine/gmail/imap-engine-gmail-folder.vala
 src/engine/imap-engine/gmail/imap-engine-gmail-search-folder.vala
 src/engine/imap-engine/imap-engine-account-synchronizer.vala
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8a8f601..b992514 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -189,7 +189,6 @@ engine/imap-engine/imap-engine-replay-operation.vala
 engine/imap-engine/imap-engine-replay-queue.vala
 engine/imap-engine/imap-engine-send-replay-operation.vala
 engine/imap-engine/gmail/imap-engine-gmail-account.vala
-engine/imap-engine/gmail/imap-engine-gmail-drafts-folder.vala
 engine/imap-engine/gmail/imap-engine-gmail-folder.vala
 engine/imap-engine/gmail/imap-engine-gmail-search-folder.vala
 engine/imap-engine/other/imap-engine-other-account.vala
diff --git a/src/engine/imap-engine/gmail/imap-engine-gmail-account.vala 
b/src/engine/imap-engine/gmail/imap-engine-gmail-account.vala
index bde3360..aad5ea4 100644
--- a/src/engine/imap-engine/gmail/imap-engine-gmail-account.vala
+++ b/src/engine/imap-engine/gmail/imap-engine-gmail-account.vala
@@ -85,7 +85,8 @@ private class Geary.ImapEngine.GmailAccount : Geary.ImapEngine.GenericAccount {
                     special_folder_type);
             
             case SpecialFolderType.DRAFTS:
-                return new GmailDraftsFolder(this, remote_account, local_account, local_folder,
+            case SpecialFolderType.TRASH:
+                return new GenericFolder(this, remote_account, local_account, local_folder,
                     special_folder_type);
             
             default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]