From 3600b50b469192419065c7597acc96e9493c28e8 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 31 Oct 2001 00:55:46 +0000 Subject: set a body for the message 2001-10-30 JP Rosevear * gui/itip-utils.c (itip_send_comp): set a body for the message svn path=/trunk/; revision=14514 --- calendar/gui/itip-utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'calendar/gui/itip-utils.c') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index c955425dd5..daf559dc17 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -673,7 +673,7 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp) GNOME_Evolution_Composer_RecipientList *to_list = NULL; GNOME_Evolution_Composer_RecipientList *cc_list = NULL; GNOME_Evolution_Composer_RecipientList *bcc_list = NULL; - CORBA_char *subject = NULL, *content_type = NULL; + CORBA_char *subject = NULL, *body = NULL, *content_type = NULL; CORBA_char *filename = NULL, *description = NULL; GNOME_Evolution_Composer_AttachmentData *attach_data = NULL; CORBA_boolean show_inline; @@ -716,6 +716,10 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp) goto cleanup; } + /* Plain text body */ + body = comp_description (comp); + GNOME_Evolution_Composer_setBodyText (composer_server, body, &ev); + /* Content type, suggested file name, description */ content_type = comp_content_type (method); filename = comp_filename (comp); @@ -764,6 +768,8 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp) if (subject != NULL) CORBA_free (subject); + if (body != NULL) + CORBA_free (body); if (content_type != NULL) CORBA_free (content_type); if (filename != NULL) -- cgit v1.2.3