aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-03 02:36:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-03 02:36:39 +0800
commite60ee74985082c8cd101d75483022b4513036fb3 (patch)
treeecc382b37251fcc11211d39e928ee93d6b98e0fe /mail/component-factory.c
parentc588a84d62d323fdbc61ac6307edda3dc28ccdff (diff)
downloadgsoc2013-evolution-e60ee74985082c8cd101d75483022b4513036fb3.tar.gz
gsoc2013-evolution-e60ee74985082c8cd101d75483022b4513036fb3.tar.zst
gsoc2013-evolution-e60ee74985082c8cd101d75483022b4513036fb3.zip
Connect to the folder_remove signal on the storage. (vfolder_remove): New
2001-08-02 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_create_storage): Connect to the folder_remove signal on the storage. (vfolder_remove): New function to remove a vfolder. svn path=/trunk/; revision=11591
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 58248d97d7..4c947c1fa1 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -199,17 +199,17 @@ create_folder (EvolutionShellComponent *shell_component,
CORBA_Environment ev;
CORBA_exception_init(&ev);
- if (!strcmp(type, "mail")) {
+ if (!strcmp (type, "mail")) {
/* This makes the uri start with mbox://file://, which
looks silly but turns into a CamelURL that has
url->provider of "mbox" */
- uri = g_strdup_printf("mbox://%s", physical_uri);
- mail_create_folder(uri, do_create_folder, CORBA_Object_duplicate(listener, &ev));
+ uri = g_strdup_printf ("mbox://%s", physical_uri);
+ mail_create_folder (uri, do_create_folder, CORBA_Object_duplicate (listener, &ev));
} else {
- GNOME_Evolution_ShellComponentListener_notifyResult(
+ GNOME_Evolution_ShellComponentListener_notifyResult (
listener, GNOME_Evolution_ShellComponentListener_UNSUPPORTED_TYPE, &ev);
}
- CORBA_exception_free(&ev);
+ CORBA_exception_free (&ev);
}
static void
@@ -240,14 +240,14 @@ remove_folder (EvolutionShellComponent *shell_component,
CORBA_Environment ev;
CORBA_exception_init (&ev);
-
+
if (strcmp (type, "mail") != 0) {
GNOME_Evolution_ShellComponentListener_notifyResult (listener,
GNOME_Evolution_ShellComponentListener_UNSUPPORTED_TYPE, &ev);
CORBA_exception_free (&ev);
return;
}
-
+
mail_remove_folder (physical_uri, do_remove_folder, CORBA_Object_duplicate (listener, &ev));
GNOME_Evolution_ShellComponentListener_notifyResult (listener,
GNOME_Evolution_ShellComponentListener_OK, &ev);
@@ -825,7 +825,7 @@ storage_remove_folder (EvolutionStorage *storage,
if (*physical_uri) {
if (strncmp (physical_uri, "vtrash:", 7) == 0)
return EVOLUTION_STORAGE_ERROR_INVALID_URI;
-
+
url = camel_url_new (physical_uri, NULL);
if (!url)
return EVOLUTION_STORAGE_ERROR_INVALID_URI;