aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-09 06:42:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-09 06:42:53 +0800
commitc64038a75a5c00d5976e505191b4adda5eb06774 (patch)
treed6f2cbbbfa28c7f297bba6a0ae0da45fb9649f3d /mail/component-factory.c
parentda166efb51a0b205be4d534eebedd9e2aae62839 (diff)
downloadgsoc2013-evolution-c64038a75a5c00d5976e505191b4adda5eb06774.tar.gz
gsoc2013-evolution-c64038a75a5c00d5976e505191b4adda5eb06774.tar.zst
gsoc2013-evolution-c64038a75a5c00d5976e505191b4adda5eb06774.zip
Add "vtrash" as a folder type we support. (create_view): Kludgy-kludge
2001-03-08 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c6
1 files changed, 3 insertions, 3 deletions
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 <gal/widgets/e-gui-utils.h>
@@ -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 }
};