From b307f4e80d1433022c028aac521e160f5a4a34c4 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 24 Jul 2001 02:34:43 +0000 Subject: Dont call notifyResult here if we've just launched a thread to do the 2001-07-24 Not Zed * component-factory.c (create_folder): Dont call notifyResult here if we've just launched a thread to do the work, it calls it itself. This apparently breaks the importers, but thats a different issue. svn path=/trunk/; revision=11335 --- mail/component-factory.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index b005863c3a..37e004a2d7 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -177,10 +177,10 @@ do_create_folder (char *uri, CamelFolder *folder, void *data) else result = GNOME_Evolution_ShellComponentListener_INVALID_URI; - CORBA_exception_init (&ev); - GNOME_Evolution_ShellComponentListener_notifyResult (listener, result, &ev); - CORBA_Object_release (listener, &ev); - CORBA_exception_free (&ev); + CORBA_exception_init(&ev); + GNOME_Evolution_ShellComponentListener_notifyResult(listener, result, &ev); + CORBA_Object_release(listener, &ev); + CORBA_exception_free(&ev); } static void @@ -193,21 +193,18 @@ create_folder (EvolutionShellComponent *shell_component, char *uri; CORBA_Environment ev; - CORBA_exception_init (&ev); - if (!strcmp (type, "mail")) { + CORBA_exception_init(&ev); + 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)); - GNOME_Evolution_ShellComponentListener_notifyResult (listener, - GNOME_Evolution_ShellComponentListener_OK, &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 -- cgit v1.2.3