diff options
author | Not Zed <NotZed@Ximian.com> | 2004-03-05 15:10:27 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-03-05 15:10:27 +0800 |
commit | 71ea31e21704fae22af9bf0d775c0e26c18be262 (patch) | |
tree | 5ce44159b6a81e063e0d72ce0d93af8bc1fe2036 /mail/importers/evolution-outlook-importer.c | |
parent | 018866693e09f835b137b25f255d795f69d4a50e (diff) | |
download | gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar.gz gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar.bz2 gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar.lz gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar.xz gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.tar.zst gsoc2013-evolution-71ea31e21704fae22af9bf0d775c0e26c18be262.zip |
** See bug #55096.
2004-03-05 Not Zed <NotZed@Ximian.com>
** See bug #55096.
* importers/evolution-mbox-importer.c (process_item_fn): hack,
unref when complete
* importers/evolution-outlook-importer.c (outlook_importer_new):
init status lock.
(process_item_fn): hack, unref ourselves when we're complete. i
think the shell leaks the ref.
svn path=/trunk/; revision=24972
Diffstat (limited to 'mail/importers/evolution-outlook-importer.c')
-rw-r--r-- | mail/importers/evolution-outlook-importer.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/importers/evolution-outlook-importer.c b/mail/importers/evolution-outlook-importer.c index 3a8b334ba8..800d318e76 100644 --- a/mail/importers/evolution-outlook-importer.c +++ b/mail/importers/evolution-outlook-importer.c @@ -97,6 +97,16 @@ typedef struct oe_msg_segmentheader oe_msg_segmentheader; static void process_item_fn(EvolutionImporter *eimporter, CORBA_Object listener, void *data, CORBA_Environment *ev) { + GNOME_Evolution_ImporterListener_ImporterResult result; +#if 0 + if (camel_exception_is_set(importer->ex)) + result = GNOME_Evolution_ImporterListener_BAD_FILE; + else +#endif + result = GNOME_Evolution_ImporterListener_OK; + + GNOME_Evolution_ImporterListener_notifyResult(listener, result, FALSE, ev); + bonobo_object_unref(BONOBO_OBJECT(eimporter)); } @@ -240,7 +250,7 @@ outlook_importer_new(void) OutlookImporter *oli; oli = g_new0 (OutlookImporter, 1); - + oli->status_lock = g_mutex_new(); importer = evolution_importer_new (NULL, support_format_fn, load_file_fn, process_item_fn, NULL, oli); g_object_weak_ref((GObject *)importer, importer_destroy_cb, oli); |