aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c4
-rw-r--r--composer/e-msg-composer.h2
3 files changed, 10 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e902007906..523164bdbc 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-25 Johnny Jacob <jjohnny@novell.com>
+
+ ** Fixes bug #503327 & #503678
+
+ * e-msg-composer.c (e_msg_composer_get_raw_message_text): Return
+ GByteArray instead of gchar*
+
2008-01-24 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #509124
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f0bb36633f..56035b1aea 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -6262,7 +6262,7 @@ e_msg_composer_unset_autosaved (EMsgComposer *composer)
*
* Returns the text/plain of the message from composer
**/
-const gchar *
+GByteArray *
e_msg_composer_get_raw_message_text (EMsgComposer *composer)
{
GByteArray *data = NULL;
@@ -6271,7 +6271,7 @@ e_msg_composer_get_raw_message_text (EMsgComposer *composer)
data = get_text (p->persist_stream_interface, "text/plain");
if (data)
- return (const gchar *)data->data;
+ return data;
return NULL;
}
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h
index 19e84170e4..a6c8e719fc 100644
--- a/composer/e-msg-composer.h
+++ b/composer/e-msg-composer.h
@@ -192,7 +192,7 @@ EMsgComposerHdrs* e_msg_composer_get_hdrs (EMsgComposer *composer);
void e_msg_composer_set_saved (EMsgComposer *composer);
void e_msg_composer_set_send_options (EMsgComposer *composer,
gboolean send_enable);
-const gchar * e_msg_composer_get_raw_message_text (EMsgComposer *composer);
+GByteArray * e_msg_composer_get_raw_message_text (EMsgComposer *composer);
struct _EAttachmentBar* e_msg_composer_get_attachment_bar (EMsgComposer *composer);