aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-29 03:29:09 +0800
committerDan Winship <danw@src.gnome.org>2000-12-29 03:29:09 +0800
commit87d3886d23295d8dc8ce02a717696af927d8833a (patch)
tree4fcdc6cbf374cb4536578b1cb5add8814d20e065 /composer/e-msg-composer-attachment.c
parent22876b6aa8f2e00c61e70352336ad00250dcec33 (diff)
downloadgsoc2013-evolution-87d3886d23295d8dc8ce02a717696af927d8833a.tar.gz
gsoc2013-evolution-87d3886d23295d8dc8ce02a717696af927d8833a.tar.zst
gsoc2013-evolution-87d3886d23295d8dc8ce02a717696af927d8833a.zip
Use CamelContentType instead of GMimeContentField.
* e-msg-composer.c (handle_multipart_alternative, handle_multipart, e_msg_composer_new_with_message): Use CamelContentType instead of GMimeContentField. * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): * e-msg-composer-attachment-bar.c (update, attach_to_multipart): Use CamelContentType, and use the header_content_type_* functions rather than operating on the structure by hand. svn path=/trunk/; revision=7188
Diffstat (limited to 'composer/e-msg-composer-attachment.c')
-rw-r--r--composer/e-msg-composer-attachment.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index 8483e318db..56a54877ce 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -391,7 +391,7 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment,
"mime_type_entry"));
if (attachment != NULL) {
- GMimeContentField *content_type;
+ CamelContentType *content_type;
char *type;
set_entry (editor_gui, "file_name_entry",
@@ -399,8 +399,7 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment,
set_entry (editor_gui, "description_entry",
camel_mime_part_get_description (attachment->body));
content_type = camel_mime_part_get_content_type (attachment->body);
- type = g_strdup_printf ("%s/%s", content_type->type,
- content_type->subtype);
+ type = header_content_type_format (content_type);
set_entry (editor_gui, "mime_type_entry", type);
g_free (type);
}