aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/gui/component/e-book-shell-module.c14
1 files changed, 14 insertions, 0 deletions
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 <config.h>
+
#include <string.h>
#include <glib/gi18n.h>
#include <libebook/e-book.h>
@@ -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);