From 32f545cdf031ebe3718791f18e8fb6b6141fd081 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 28 Aug 2009 20:21:54 -0400 Subject: Simplify EPlugin loading at startup. - Require all EPlugin and EPluginHook subtypes be registered before loading plugins. This drastically simplifies the EPlugin/EPluginHook negotiation. - Turn most EPluginHook subtypes into GTypeModules and register their types from an e_module_load() function (does not include shell hooks). - Convert EPluginLib and the Mono and Python bindings to GTypeModules and register their types from an e_module_load() function, and kill EPluginTypeHook. --- modules/mail/evolution-module-mail.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/mail/evolution-module-mail.c') diff --git a/modules/mail/evolution-module-mail.c b/modules/mail/evolution-module-mail.c index 97bc953c41..1bb58c7742 100644 --- a/modules/mail/evolution-module-mail.c +++ b/modules/mail/evolution-module-mail.c @@ -19,6 +19,12 @@ * */ +#include "e-mail-attachment-handler.h" + +#include "e-mail-config-hook.h" +#include "e-mail-event-hook.h" +#include "e-mail-junk-hook.h" + #include "e-mail-shell-backend.h" #include "e-mail-shell-content.h" #include "e-mail-shell-sidebar.h" @@ -34,6 +40,12 @@ e_module_load (GTypeModule *type_module) { /* Register dynamically loaded types. */ + e_mail_attachment_handler_register_type (type_module); + + e_mail_config_hook_register_type (type_module); + e_mail_event_hook_register_type (type_module); + e_mail_junk_hook_register_type (type_module); + e_mail_shell_backend_register_type (type_module); e_mail_shell_content_register_type (type_module); e_mail_shell_sidebar_register_type (type_module); -- cgit