diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-02-19 00:12:16 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-02-19 00:12:16 +0800 |
commit | 8d4f642268967bcf14edf6d070ffdda19be4cb9f (patch) | |
tree | b355055398b8a9bb10a52daf348d82d23658c55d | |
parent | c64117579df723a61d6f84cf64b5dbee9dbb89f0 (diff) | |
download | gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar.gz gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar.bz2 gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar.lz gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar.xz gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.tar.zst gsoc2013-evolution-8d4f642268967bcf14edf6d070ffdda19be4cb9f.zip |
Revert change from yesterday. (efhd_xpkcs7mime_button): Use the icon from
2004-02-18 Jeffrey Stedfast <fejj@ximian.com>
* 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
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-format-html-display.c | 26 |
2 files changed, 9 insertions, 23 deletions
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 <fejj@ximian.com> + + * 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 <NotZed@Ximian.com> ** 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); |