From c2fbc7463302ffdf5e5ad915ab8f89d5e3086209 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 15 Jan 2009 04:48:27 +0000 Subject: Activate S/MIME support and add the "Certificates" section to preferences. ... But why is this initialized from the address book? Seems arbitrary. svn path=/branches/kill-bonobo/; revision=37076 --- addressbook/gui/component/e-book-shell-module.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/e-book-shell-module.c b/addressbook/gui/component/e-book-shell-module.c index 0e48f06858..b538c59559 100644 --- a/addressbook/gui/component/e-book-shell-module.c +++ b/addressbook/gui/component/e-book-shell-module.c @@ -19,6 +19,8 @@ * */ +#include + #include #include #include @@ -44,6 +46,11 @@ #include "e-book-shell-view.h" #include "e-book-shell-module-migrate.h" +#ifdef ENABLE_SMIME +#include "smime/gui/component.h" +#include "smime/gui/certificate-manager.h" +#endif + #define MODULE_NAME "addressbook" #define MODULE_ALIASES "contacts" #define MODULE_SCHEMES "" @@ -433,6 +440,13 @@ e_shell_module_init (GTypeModule *type_module) shell_module, &module_info, e_book_shell_view_get_type (type_module)); + /* XXX Why is this here? Address books aren't the only + * things that use S/MIME. Maybe put it in EShell? */ +#ifdef ENABLE_SMIME + smime_component_init (); + certificate_manager_config_init (); +#endif + book_shell_module_init_importers (); book_shell_module_ensure_sources (shell_module); -- cgit v1.2.3