From 87d3886d23295d8dc8ce02a717696af927d8833a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 28 Dec 2000 19:29:09 +0000 Subject: 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 --- composer/e-msg-composer-attachment.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'composer/e-msg-composer-attachment.c') 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); } -- cgit v1.2.3