From c64038a75a5c00d5976e505191b4adda5eb06774 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 8 Mar 2001 22:42:53 +0000 Subject: Add "vtrash" as a folder type we support. (create_view): Kludgy-kludge 2001-03-08 Jeffrey Stedfast * component-factory.c: Add "vtrash" as a folder type we support. (create_view): Kludgy-kludge around the vtrash type. (owner_set_cb): Don't create the vTrash folder here anymore... svn path=/trunk/; revision=8603 --- mail/component-factory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 340b9b8c11..93e8ada015 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -43,7 +43,6 @@ #include "mail-mt.h" #include "mail-importer.h" #include "mail-vfolder.h" /* vfolder_create_storage */ -#include "mail-vtrash.h" #include "openpgp-utils.h" #include @@ -102,6 +101,8 @@ create_view (EvolutionShellComponent *shell_component, camel_object_unref (CAMEL_OBJECT (store)); control = folder_browser_factory_new_control ("", corba_shell); + } else if (g_strcasecmp (folder_type, "vtrash") == 0) { + control = folder_browser_factory_new_control ("vtrash:file:/", corba_shell); } else return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE; @@ -216,8 +217,6 @@ owner_set_cb (EvolutionShellComponent *shell_component, g_free (uri); } - mail_vtrash_create ("file:/", "vTrash"); - mail_session_enable_interaction (TRUE); mail_autoreceive_setup (); @@ -256,6 +255,7 @@ owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data) static const EvolutionShellComponentFolderType folder_types[] = { { "mail", "evolution-inbox.png" }, { "mailstorage", "evolution-inbox.png" }, + { "vtrash", "evolution-inbox.png" }, { NULL, NULL } }; -- cgit v1.2.3