[Xfce4-commits] <postler:master> Don't display the toplevel multipart part

Christian Dywan noreply at xfce.org
Thu Jul 29 12:26:14 CEST 2010


Updating branch refs/heads/master
         to d2184aa24128fb47ab42da46fb99209b11bc873a (commit)
       from fe6ceab542c5ed35a479ef0790dfd35586720f48 (commit)

commit d2184aa24128fb47ab42da46fb99209b11bc873a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 28 13:10:11 2010 +0200

    Don't display the toplevel multipart part

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

diff --git a/postler/postler-viewer.vala b/postler/postler-viewer.vala
index f46935f..21b5f48 100644
--- a/postler/postler-viewer.vala
+++ b/postler/postler-viewer.vala
@@ -122,6 +122,12 @@ public class Postler.Viewer : Gtk.VBox {
         var parts = content.get_parts ();
         uint index = 0;
         foreach (var part in parts) {
+            /* Don't display the toplevel multipart part */
+            if (index == 0 && part.has_prefix ("multipart/")) {
+                index++;
+                continue;
+            }
+
             string icon_name = icon_name_for_mime_type (part, this);
             var icon = new Gtk.Image.from_icon_name (icon_name,
                                                      Gtk.IconSize.BUTTON);



More information about the Xfce4-commits mailing list