[Xfce4-commits] <postler:master> Don't show buttons for multipart parts

Christian Dywan noreply at xfce.org
Mon Dec 20 04:58:05 CET 2010


Updating branch refs/heads/master
         to 9dec57c8c40b625f45d4f9658692a806da33aa64 (commit)
       from cd2374317d5993c983c6f90f85d13083c3b9ef1b (commit)

commit 9dec57c8c40b625f45d4f9658692a806da33aa64
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Dec 20 01:51:58 2010 +0100

    Don't show buttons for multipart parts
    
    Fixes: https://bugs.launchpad.net/postler/+bug/692072

 postler/postler-viewer.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/postler/postler-viewer.vala b/postler/postler-viewer.vala
index 36e23dc..3f9b40b 100644
--- a/postler/postler-viewer.vala
+++ b/postler/postler-viewer.vala
@@ -110,6 +110,9 @@ public class Postler.Viewer : Gtk.VBox {
         foreach (var child in children)
             child.destroy ();
         foreach (var part in content.message_parts) {
+            if (part.mime_type.has_prefix ("multipart/"))
+                continue;
+
             string icon_name = icon_name_for_mime_type (part.mime_type, this);
             var icon = new Gtk.Image.from_icon_name (icon_name,
                                                      Gtk.IconSize.BUTTON);



More information about the Xfce4-commits mailing list