From a5ae4136604265be108fc422e3b3340df2570979 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Wed, 7 Jan 2004 20:23:52 +0000 Subject: Move the smime_component_init call to the instance init callback, rather 2004-01-07 Rodney Dawes * gui/component/addressbook-component.c: Move the smime_component_init call to the instance init callback, rather than the class init, and wrap it in #if HAVE_NSS, so the addressbook works without smime support svn path=/trunk/; revision=24092 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/component/addressbook-component.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 064e762979..266ce2dc90 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2004-01-07 Rodney Dawes + + * gui/component/addressbook-component.c: Move the smime_component_init + call to the instance init callback, rather than the class init, and + wrap it in #if HAVE_NSS, so the addressbook works without smime support + 2004-01-07 JP Rosevear * gui/component/Makefile.am: link in printer stuff diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index 1bc0799a73..f4cd1bece4 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -431,8 +431,6 @@ addressbook_component_class_init (AddressbookComponentClass *class) object_class->finalize = impl_finalize; parent_class = g_type_class_peek_parent (class); - - smime_component_init (); } static void @@ -453,6 +451,10 @@ addressbook_component_init (AddressbookComponent *component) priv->base_directory = g_build_filename (g_get_home_dir (), ".evolution", NULL); component->priv = priv; + +#if HAVE_NSS + smime_component_init (); +#endif } -- cgit v1.2.3