[balsa/gtk3] Respect the All-headers option on the View menu



commit 233d23c68b89f8abc7ed3ab8d1e2d120e4db2cad
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Mar 4 07:46:46 2015 -0500

    Respect the All-headers option on the View menu
    
        * src/balsa-mime-widget-message.c
        (balsa_mime_widget_message_set_headers),
        (balsa_mime_widget_message_set_headers_d): set the
        show-all-headers parameter correctly.

 ChangeLog                       |   11 +++++++++++
 src/balsa-mime-widget-message.c |    6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 43ffe78..0e357bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2015-03-04  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Respect the "All headers" option on the "View" menu (Helmut
+       Jarausch,
+       <https://mail.gnome.org/archives/balsa-list/2015-March/msg00001.html>)
+
+       * src/balsa-mime-widget-message.c
+       (balsa_mime_widget_message_set_headers),
+       (balsa_mime_widget_message_set_headers_d): set the
+       show-all-headers parameter correctly.
+
 2015-03-03  Albrecht Dreß
 
        Improve printing of text/rfc822-headers parts
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index 1934a51..87b4833 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -818,7 +818,8 @@ balsa_mime_widget_message_set_headers(BalsaMessage        * bm,
                                       BalsaMimeWidget     * mw,
                                       LibBalsaMessageBody * part)
 {
-    bmw_message_set_headers(bm, mw, part, FALSE);
+    bmw_message_set_headers(bm, mw, part,
+                            bm->shown_headers == HEADERS_ALL);
 }
 
 void
@@ -828,7 +829,8 @@ balsa_mime_widget_message_set_headers_d(BalsaMessage           * bm,
                                         LibBalsaMessageBody    * part,
                                         const gchar            * subject)
 {
-    bmw_message_set_headers_d(bm, mw, headers, part, subject, FALSE);
+    bmw_message_set_headers_d(bm, mw, headers, part, subject,
+                              bm->shown_headers == HEADERS_ALL);
 }
 
 #ifdef HAVE_GPGME


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