diff options
author | Not Zed <NotZed@Ximian.com> | 2004-12-08 09:58:48 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-12-08 09:58:48 +0800 |
commit | f055315218f4ff5d071671bee29b8fbe0e224fa2 (patch) | |
tree | d15d97cd82da6b9057f659c707145aff9e4958a1 /mail/mail-component-factory.c | |
parent | 21cbc5f9c93ac4e230346bbae1afe9b97a74e959 (diff) | |
download | gsoc2013-evolution-f055315218f4ff5d071671bee29b8fbe0e224fa2.tar.gz gsoc2013-evolution-f055315218f4ff5d071671bee29b8fbe0e224fa2.tar.zst gsoc2013-evolution-f055315218f4ff5d071671bee29b8fbe0e224fa2.zip |
and put them here instead so they're available even when the mailer isn't
2004-12-08 Not Zed <NotZed@Ximian.com>
* mail-component-factory.c (make_factory): and put them here
instead so they're available even when the mailer isn't activated
yet.
* mail-component.c (mc_startup): remove plugin hook registrations.
svn path=/trunk/; revision=28083
Diffstat (limited to 'mail/mail-component-factory.c')
-rw-r--r-- | mail/mail-component-factory.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mail/mail-component-factory.c b/mail/mail-component-factory.c index 435c0339c5..f0fafe58e1 100644 --- a/mail/mail-component-factory.c +++ b/mail/mail-component-factory.c @@ -35,6 +35,13 @@ #include "mail-config.h" #include "mail-mt.h" +#include "em-popup.h" +#include "em-menu.h" +#include "em-event.h" +#include "em-config.h" +#include "em-format-hook.h" +#include "em-format-html-display.h" + #include "importers/mail-importer.h" #include <bonobo-activation/bonobo-activation.h> @@ -81,9 +88,21 @@ make_factory (PortableServer_POA poa, const char *iid, gpointer impl_ptr, CORBA_ static int init = 0; if (!init) { - mail_config_init (); - mail_msg_init (); init = 1; + + mail_config_init(); + mail_msg_init(); + + e_plugin_hook_register_type(em_popup_hook_get_type()); + e_plugin_hook_register_type(em_menu_hook_get_type()); + e_plugin_hook_register_type(em_config_hook_get_type()); + + em_format_hook_register_type(em_format_get_type()); + em_format_hook_register_type(em_format_html_get_type()); + em_format_hook_register_type(em_format_html_display_get_type()); + e_plugin_hook_register_type(em_format_hook_get_type()); + + e_plugin_hook_register_type(em_event_hook_get_type()); } return bonobo_shlib_factory_std (FACTORY_ID, poa, impl_ptr, factory, NULL, ev); |