From 9f12922bd88bd7a83247cc7e0646c72773e2a013 Mon Sep 17 00:00:00 2001 From: Michael Zucci Date: Tue, 12 Jul 2005 04:04:14 +0000 Subject: Merge back eplugin-import-branch. svn path=/trunk/; revision=29725 --- mail/mail-component-factory.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail/mail-component-factory.c') diff --git a/mail/mail-component-factory.c b/mail/mail-component-factory.c index cb0b10a6d0..c430525563 100644 --- a/mail/mail-component-factory.c +++ b/mail/mail-component-factory.c @@ -44,6 +44,7 @@ #include "em-format-html-display.h" #include "importers/mail-importer.h" +#include "e-util/e-import.h" #include #include @@ -89,6 +90,8 @@ make_factory (PortableServer_POA poa, const char *iid, gpointer impl_ptr, CORBA_ static int init = 0; if (!init) { + EImportClass *klass; + init = 1; mail_config_init(); @@ -106,6 +109,11 @@ make_factory (PortableServer_POA poa, const char *iid, gpointer impl_ptr, CORBA_ e_plugin_hook_register_type(em_format_hook_get_type()); e_plugin_hook_register_type(em_event_hook_get_type()); e_plugin_hook_register_type(em_junk_hook_get_type()); + + klass = g_type_class_ref(e_import_get_type()); + e_import_class_add_importer(klass, mbox_importer_peek(), NULL, NULL); + e_import_class_add_importer(klass, elm_importer_peek(), NULL, NULL); + e_import_class_add_importer(klass, pine_importer_peek(), NULL, NULL); } return bonobo_shlib_factory_std (FACTORY_ID, poa, impl_ptr, factory, NULL, ev); -- cgit