add boilerplate.
2003-10-30 Chris Toshok <toshok@ximian.com> * 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
This commit is contained in:

committed by
Chris Toshok

parent
4981fa14e2
commit
e2e312d410
@ -1,3 +1,15 @@
|
|||||||
|
2003-10-30 Chris Toshok <toshok@ximian.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2003-10-30 Chris Toshok <toshok@ximian.com>
|
2003-10-30 Chris Toshok <toshok@ximian.com>
|
||||||
|
|
||||||
* tests/Makefile.am (INCLUDES): use CERT_UI_CFLAGS.
|
* tests/Makefile.am (INCLUDES): use CERT_UI_CFLAGS.
|
||||||
|
@ -16,7 +16,7 @@ INCLUDES = \
|
|||||||
-DLIBGNOME_DISABLE_DEPRECATED \
|
-DLIBGNOME_DISABLE_DEPRECATED \
|
||||||
-DLIBGNOMEUI_DISABLE_DEPRECATED \
|
-DLIBGNOMEUI_DISABLE_DEPRECATED \
|
||||||
$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
|
$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
|
||||||
$(CAMEL_CFLAGS)
|
$(CERT_UI_CFLAGS)
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libevolution-smime.la
|
noinst_LTLIBRARIES = libevolution-smime.la
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ libevolution_smime_la_SOURCES = \
|
|||||||
|
|
||||||
libevolution_smime_la_LIBADD = \
|
libevolution_smime_la_LIBADD = \
|
||||||
$(top_builddir)/smime/lib/libessmime.la \
|
$(top_builddir)/smime/lib/libessmime.la \
|
||||||
$(EVOLUTION_ADDRESSBOOK_LIBS) $(CAMEL_LIBS)
|
$(CERT_UI_LIBS)
|
||||||
|
|
||||||
|
|
||||||
glade_DATA = smime-ui.glade
|
glade_DATA = smime-ui.glade
|
||||||
|
@ -318,13 +318,15 @@ populate_ui (CertificateManagerData *cfm)
|
|||||||
EvolutionConfigControl*
|
EvolutionConfigControl*
|
||||||
certificate_manager_config_control_new (void)
|
certificate_manager_config_control_new (void)
|
||||||
{
|
{
|
||||||
CertificateManagerData *cfm_data = g_new0 (CertificateManagerData, 1);
|
CertificateManagerData *cfm_data;
|
||||||
GtkWidget *control_widget;
|
GtkWidget *control_widget;
|
||||||
|
|
||||||
/* XXX this should happen someplace else, and shouldn't
|
/* XXX this should happen someplace else, and shouldn't
|
||||||
reference my default mozilla profile :) */
|
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->gui = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, NULL, NULL);
|
||||||
|
|
||||||
cfm_data->yourcerts_treeview = glade_xml_get_widget (cfm_data->gui, "yourcerts-treeview");
|
cfm_data->yourcerts_treeview = glade_xml_get_widget (cfm_data->gui, "yourcerts-treeview");
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
||||||
|
/*
|
||||||
|
* Authors: Chris Toshok <toshok@ximian.com>
|
||||||
|
*
|
||||||
|
* Copyright (C) 2003 Ximian, Inc. (www.ximian.com)
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _CERTIFICATE_MANAGER_H_
|
#ifndef _CERTIFICATE_MANAGER_H_
|
||||||
#define _CERTIFICATE_MANAGER_H
|
#define _CERTIFICATE_MANAGER_H
|
||||||
|
Reference in New Issue
Block a user