From fc14cff44430c79d17afec65262692dcb1124721 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 11 Jan 2011 23:23:19 +0200 Subject: [PATCH] =?UTF-8?q?*=20mu-msg-attach-view:=20update=20for=20mu=5Fm?= =?UTF-8?q?sg=5Fpart=5Flooks=5Flike=C2=A0attachment=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widgets/mu-msg-attach-view.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/widgets/mu-msg-attach-view.c b/widgets/mu-msg-attach-view.c index d96ce312..c6ccc71d 100644 --- a/widgets/mu-msg-attach-view.c +++ b/widgets/mu-msg-attach-view.c @@ -159,15 +159,14 @@ each_part (MuMsg *msg, MuMsgPart *part, CBData *cbdata) GdkPixbuf *pixbuf; char ctype[128]; - /* not a real attachment */ - if (!mu_msg_part_file_name(part)) + if (!mu_msg_part_looks_like_attachment (part, FALSE)) return; - + if (!part->type || !part->subtype) snprintf (ctype, sizeof(ctype), "%s", "application/octet-stream"); else snprintf (ctype, sizeof(ctype), "%s/%s", part->type, part->subtype); - + pixbuf = mu_widget_util_get_icon_pixbuf_for_content_type (ctype, 16); if (!pixbuf) { g_warning ("%s: could not get icon pixbuf for '%s'",