From e2e312d4102fc8ce3c540d85b6a998d68f528cf6 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 30 Oct 2003 21:19:32 +0000 Subject: add boilerplate. 2003-10-30 Chris Toshok * gui/certificate-manager.h: add boilerplate. * gui/certificate-manager.c (certificate_manager_config_control_new): return NULL if the NSS_InitReadWrite fails - we should probably give better status though, or return a GtkLabel with an error message.... * gui/Makefile.am (INCLUDES): use CERT_UI_CFLAGS. (TEST_LIBS): use CERT_UI_LIBS. svn path=/trunk/; revision=23140 --- smime/gui/certificate-manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'smime/gui/certificate-manager.c') diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c index 97d0a1d919..7e4e1b1e1d 100644 --- a/smime/gui/certificate-manager.c +++ b/smime/gui/certificate-manager.c @@ -318,13 +318,15 @@ populate_ui (CertificateManagerData *cfm) EvolutionConfigControl* certificate_manager_config_control_new (void) { - CertificateManagerData *cfm_data = g_new0 (CertificateManagerData, 1); + CertificateManagerData *cfm_data; GtkWidget *control_widget; /* XXX this should happen someplace else, and shouldn't reference my default mozilla profile :) */ - NSS_InitReadWrite ("/home/toshok/.mozilla/default/xuvq7jx3.slt"); + if (SECSuccess != NSS_InitReadWrite ("/home/toshok/.mozilla/default/xuvq7jx3.slt")) + return NULL; + cfm_data = g_new0 (CertificateManagerData, 1); cfm_data->gui = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, NULL, NULL); cfm_data->yourcerts_treeview = glade_xml_get_widget (cfm_data->gui, "yourcerts-treeview"); -- cgit