From 8d4f642268967bcf14edf6d070ffdda19be4cb9f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 18 Feb 2004 16:12:16 +0000 Subject: Revert change from yesterday. (efhd_xpkcs7mime_button): Use the icon from 2004-02-18 Jeffrey Stedfast * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): Revert change from yesterday. (efhd_xpkcs7mime_button): Use the icon from the table. svn path=/trunk/; revision=24778 --- mail/ChangeLog | 6 ++++++ mail/em-format-html-display.c | 26 +++----------------------- 2 files changed, 9 insertions(+), 23 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index a02e22254e..24e9f9a199 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2004-02-18 Jeffrey Stedfast + + * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): + Revert change from yesterday. + (efhd_xpkcs7mime_button): Use the icon from the table. + 2004-02-18 Not Zed ** See bug #54492. diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 85ad67b872..d96259476e 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -642,16 +642,6 @@ static const struct { { "pgp-signature-nokey.png", N_("Valid signature, cannot verify sender"), N_("This message is signed with a valid signature, but the sender of the message cannot be verified.") }, }; -/* alternate sign_table descriptions for the GOOD signature case */ -static const char *smime_sign_trust[6] = { - NULL, - N_("This message is signed and valid but the sender is never to be trusted."), - N_("This message is signed and valid but there is no indication that the signature belongs to the sender."), - NULL, - NULL, - NULL, -}; - static const struct { const char *icon, *shortdesc, *description; } smime_encrypt_table[4] = { @@ -775,14 +765,7 @@ efhd_xpkcs7mime_validity_clicked(GtkWidget *button, EMFormatHTMLPObject *pobject po->widget = glade_xml_get_widget(xml, "message_security_dialog"); vbox = glade_xml_get_widget(xml, "signature_vbox"); - - if (po->valid->sign.trust) - alt_desc = smime_sign_trust[po->valid->sign.trust]; - if (po->valid->sign.status == CAMEL_CIPHER_VALIDITY_SIGN_GOOD && alt_desc) - w = gtk_label_new (_(alt_desc)); - else - w = gtk_label_new (_(smime_sign_table[po->valid->sign.status].description)); - + w = gtk_label_new (_(smime_sign_table[po->valid->sign.status].description)); gtk_misc_set_alignment((GtkMisc *)w, 0.0, 0.5); gtk_label_set_line_wrap((GtkLabel *)w, TRUE); gtk_box_pack_start((GtkBox *)vbox, w, TRUE, TRUE, 6); @@ -831,11 +814,8 @@ efhd_xpkcs7mime_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje const char *name; /* FIXME: need to have it based on encryption and signing too */ - if (po->valid->sign.status == CAMEL_CIPHER_VALIDITY_SIGN_GOOD) - name = "pgp-signature-ok.png"; - else - name = "pgp-signature-bad.png"; - + name = smime_sign_table[po->valid->sign.status].icon; + file = g_build_filename(EVOLUTION_ICONSDIR, name, NULL); pixbuf = gdk_pixbuf_new_from_file(file, NULL); g_free(file); -- cgit