aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-01-03 03:34:03 +0800
committerDan Winship <danw@src.gnome.org>2001-01-03 03:34:03 +0800
commita8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51 (patch)
treeaa831be78bd6acb232c25da9a94f866ea5171a3e /composer/e-msg-composer-attachment-bar.c
parent20b84e201f497ecbb1206f625e0a559398dd6d86 (diff)
downloadgsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.tar.gz
gsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.tar.zst
gsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.zip
Use header_content_type_simple, not header_content_type_format.
* e-msg-composer-attachment.c (e_msg_composer_attachment_edit): * e-msg-composer-attachment-bar.c (update): Use header_content_type_simple, not header_content_type_format. svn path=/trunk/; revision=7215
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index ebab16a971..d797f4aa4e 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -235,15 +235,13 @@ update (EMsgComposerAttachmentBar *bar)
for (p = priv->attachments; p != NULL; p = p->next) {
EMsgComposerAttachment *attachment;
const gchar *desc;
- gchar *size_string, *label, *mime_type;
+ gchar *size_string, *label;
CamelContentType *content_type;
GdkPixbuf *pixbuf;
gboolean image;
attachment = p->data;
content_type = camel_mime_part_get_content_type (attachment->body);
- mime_type = header_content_type_format (content_type);
-
/* Get the image out of the attachment
and create a thumbnail for it */
image = header_content_type_is (content_type, "image", "*");
@@ -335,14 +333,17 @@ update (EMsgComposerAttachmentBar *bar)
if (image) {
e_icon_list_append_pixbuf (icon_list, attachment->pixbuf_cache, NULL, label);
} else {
+ char *mime_type;
+
+ mime_type = header_content_type_simple (content_type);
pixbuf = pixbuf_for_mime_type (mime_type);
+ g_free (mime_type);
e_icon_list_append_pixbuf (icon_list, pixbuf,
NULL, label);
if (pixbuf)
gdk_pixbuf_unref (pixbuf);
}
- g_free (mime_type);
g_free (label);
}