aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-27 04:42:22 +0800
committerDan Winship <danw@src.gnome.org>2000-04-27 04:42:22 +0800
commit2409d71026645028f49bfd0f745e93346cc17450 (patch)
tree99f977c1c2736e3a76660441674b515e5fcaf4c0 /composer/e-msg-composer.c
parente751baaa7bfe2d7261e4501a8b79816dbaa3b488 (diff)
downloadgsoc2013-evolution-2409d71026645028f49bfd0f745e93346cc17450.tar.gz
gsoc2013-evolution-2409d71026645028f49bfd0f745e93346cc17450.tar.zst
gsoc2013-evolution-2409d71026645028f49bfd0f745e93346cc17450.zip
Update for camel_mime_part_set_content.
svn path=/trunk/; revision=2644
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 288bd50e59..3a2decae4a 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -154,10 +154,8 @@ build_message (EMsgComposer *composer)
body_part = camel_mime_body_part_new ();
text = get_editor_text (BONOBO_WIDGET (composer->editor));
- /* set text sets text/plain */
- camel_mime_part_set_text((CamelMimePart *)body_part, text);
- camel_data_wrapper_set_mime_type (CAMEL_DATA_WRAPPER (camel_medium_get_content_object((CamelMedium *)body_part)),
- "text/html");
+ camel_mime_part_set_content (CAMEL_MIME_PART (body_part), text,
+ strlen (text), "text/html");
g_free (text);
camel_multipart_add_part (multipart, body_part);