aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-17 04:06:41 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-17 04:06:41 +0800
commit0c0096e2613c019fc84af92ee84d611fe1d6be34 (patch)
treef8a46bb8b3bfedd9257371ebad51e030714fc782
parent11b4c8654dd37c55ce2e61c5dad3dab6c0d13ba3 (diff)
downloadgsoc2013-evolution-0c0096e2613c019fc84af92ee84d611fe1d6be34.tar.gz
gsoc2013-evolution-0c0096e2613c019fc84af92ee84d611fe1d6be34.tar.zst
gsoc2013-evolution-0c0096e2613c019fc84af92ee84d611fe1d6be34.zip
#ifdef out certain code pieces if s/mime isn't supported
2003-12-16 JP Rosevear <jpr@ximian.com> * em-format-html-display.c: #ifdef out certain code pieces if s/mime isn't supported svn path=/trunk/; revision=23950
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-format-html-display.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2c842e945b..68cad831b7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-16 JP Rosevear <jpr@ximian.com>
+
+ * em-format-html-display.c: #ifdef out certain code pieces if
+ s/mime isn't supported
+
2003-12-14 JP Rosevear <jpr@ximian.com>
* em-folder-tree.c (emft_tree_row_collapsed): Fix erroneous
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index e21373cc51..d81077e857 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -73,8 +73,10 @@
#include <e-util/e-gui-utils.h>
#include <e-util/e-dialog-utils.h>
+#if defined(HAVE_NSS)
#include "certificate-viewer.h"
#include "e-cert-db.h"
+#endif
#include "mail-config.h"
@@ -638,6 +640,7 @@ efhd_xpkcs7mime_info_response(GtkWidget *w, guint button, struct _smime_pobject
po->widget = NULL;
}
+#if defined(HAVE_NSS)
static void
efhd_xpkcs7mime_viewcert_clicked(GtkWidget *button, struct _smime_pobject *po)
{
@@ -662,6 +665,7 @@ efhd_xpkcs7mime_viewcert_clicked(GtkWidget *button, struct _smime_pobject *po)
g_warning("can't find certificate for %s <%s>", info->name?info->name:"", info->email?info->email:"");
}
}
+#endif
static void
efhd_xpkcs7mime_add_cert_table(GtkWidget *vbox, EDList *certlist, struct _smime_pobject *po)
@@ -691,10 +695,15 @@ efhd_xpkcs7mime_add_cert_table(GtkWidget *vbox, EDList *certlist, struct _smime_
gtk_misc_set_alignment((GtkMisc *)w, 0.0, 0.5);
g_free(la);
gtk_table_attach(table, w, 0, 1, n, n+1, GTK_FILL, GTK_FILL, 3, 3);
+#if defined(HAVE_NSS)
w = gtk_button_new_with_mnemonic(_("_View Certificate"));
gtk_table_attach(table, w, 1, 2, n, n+1, 0, 0, 3, 3);
g_object_set_data((GObject *)w, "e-cert-info", info);
g_signal_connect(w, "clicked", G_CALLBACK(efhd_xpkcs7mime_viewcert_clicked), po);
+#else
+ w = gtk_label_new (_("This certificate is not viewable"));
+ gtk_table_attach(table, w, 1, 2, n, n+1, 0, 0, 3, 3);
+#endif
n++;
}