[balsa/gtk3] Remove confusing signature info



commit f6677fc56108fc935d3d5785e22f7e0fbde8f302
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri May 20 09:43:21 2016 -0400

    Remove confusing signature info

 ChangeLog                      |    6 ++++++
 src/balsa-mime-widget-crypto.c |   16 ++--------------
 2 files changed, 8 insertions(+), 14 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ed66d68..5601674 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-20  Albrecht Dreß
+
+       * src/balsa-mime-widget-crypto.c
+       (balsa_mime_widget_signature_widget): remove confusing signature
+       info.
+
 2016-05-17  Peter Bloomfield  <pbloomfield bellsouth net>
 
        * src/balsa-mime-widget-message.c (add_header_gchar),
diff --git a/src/balsa-mime-widget-crypto.c b/src/balsa-mime-widget-crypto.c
index 37ec3a2..79d15db 100644
--- a/src/balsa-mime-widget-crypto.c
+++ b/src/balsa-mime-widget-crypto.c
@@ -67,27 +67,15 @@ balsa_mime_widget_signature_widget(LibBalsaMessageBody * mime_body,
     if (!mime_body->sig_info ||
        mime_body->sig_info->status == GPG_ERR_NOT_SIGNED)
        return NULL;
-                                  
+
     infostr =
         libbalsa_signature_info_to_gchar(mime_body->sig_info,
                                          balsa_app.date_string);
-    if (g_ascii_strcasecmp(content_type, "application/pgp-signature") &&
-       g_ascii_strcasecmp(content_type, "application/pkcs7-signature") &&
-       g_ascii_strcasecmp(content_type, "application/x-pkcs7-signature")) {
-       gchar * labelstr = 
-           g_strdup_printf(_("This is an inline %s signed %s message part:\n%s"),
-                           mime_body->sig_info->protocol == GPGME_PROTOCOL_OpenPGP ?
-                           _("OpenPGP") : _("S/MIME"),
-                           content_type, infostr);
-       g_free(infostr);
-       infostr = labelstr;
-    }
-
     if (!infostr)
         return NULL;
     lines = g_strsplit(infostr, "\n", 2);
     g_free(infostr);
-    
+
     vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, BMW_VBOX_SPACE);
     label = gtk_label_new(lines[1] ? lines[1] : lines[0]);
     gtk_label_set_selectable(GTK_LABEL(label), TRUE);


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