[evolution/wip/webkit2] Bug 767542 - Correct encrypted-only message formatter color and icon



commit dd62a0834088aaa37d5b36af1ebd0ddfe3d31253
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 13 17:24:57 2016 +0200

    Bug 767542 - Correct encrypted-only message formatter color and icon

 em-format/e-mail-formatter-secure-button.c |    8 ++++----
 em-format/e-mail-part-utils.c              |    5 ++++-
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/em-format/e-mail-formatter-secure-button.c b/em-format/e-mail-formatter-secure-button.c
index 1f0420d..8db0878 100644
--- a/em-format/e-mail-formatter-secure-button.c
+++ b/em-format/e-mail-formatter-secure-button.c
@@ -54,10 +54,10 @@ static const struct {
 static const struct {
        const gchar *icon, *shortdesc, *description;
 } smime_encrypt_table[4] = {
-       { "stock_lock-broken", N_("Unencrypted"), N_("This message is not encrypted. Its content may be 
viewed in transit across the Internet.") },
-       { "stock_lock-ok", N_("Encrypted, weak"), N_("This message is encrypted, but with a weak encryption 
algorithm. It would be difficult, but not impossible for an outsider to view the content of this message in a 
practical amount of time.") },
-       { "stock_lock-ok", N_("Encrypted"), N_("This message is encrypted.  It would be difficult for an 
outsider to view the content of this message.") },
-       { "stock_lock-ok", N_("Encrypted, strong"), N_("This message is encrypted, with a strong encryption 
algorithm. It would be very difficult for an outsider to view the content of this message in a practical 
amount of time.") },
+       { "security-low", N_("Unencrypted"), N_("This message is not encrypted. Its content may be viewed in 
transit across the Internet.") },
+       { "security-high", N_("Encrypted, weak"), N_("This message is encrypted, but with a weak encryption 
algorithm. It would be difficult, but not impossible for an outsider to view the content of this message in a 
practical amount of time.") },
+       { "security-high", N_("Encrypted"), N_("This message is encrypted.  It would be difficult for an 
outsider to view the content of this message.") },
+       { "security-high", N_("Encrypted, strong"), N_("This message is encrypted, with a strong encryption 
algorithm. It would be very difficult for an outsider to view the content of this message in a practical 
amount of time.") },
 };
 
 static const GdkRGBA smime_sign_colour[6] = {
diff --git a/em-format/e-mail-part-utils.c b/em-format/e-mail-part-utils.c
index 6fef915..6a9fbac 100644
--- a/em-format/e-mail-part-utils.c
+++ b/em-format/e-mail-part-utils.c
@@ -80,12 +80,15 @@ e_mail_part_get_frame_security_style (EMailPart *part)
                        } else if (frame_style == NULL &&
                                pair->validity->sign.status == CAMEL_CIPHER_VALIDITY_SIGN_NEED_PUBLIC_KEY) {
                                frame_style = "-e-mail-formatter-frame-security-need-key";
+                       } else if (frame_style == NULL &&
+                               pair->validity->sign.status == CAMEL_CIPHER_VALIDITY_SIGN_GOOD) {
+                               frame_style = "-e-mail-formatter-frame-security-good";
                        }
                }
        }
 
        if (frame_style == NULL)
-               frame_style = "-e-mail-formatter-frame-security-good";
+               frame_style = "-e-mail-formatter-frame-security-none";
 
        return frame_style;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]