diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 27 |
2 files changed, 33 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index b5d50def62..c7e20a0e83 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2007-07-08 Johnny Jacob <jjohnny@novell.com> + + * e-msg-composer.c : (e_msg_composer_get_raw_message_text ) Added. + (e_msg_composer_get_attachment_bar) : Added. Returns the reference + to the attachment bar. + 2007-06-18 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #444107 diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 63052a3ff2..53f6ce70e9 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -6224,6 +6224,33 @@ e_msg_composer_unset_autosaved (EMsgComposer *composer) p->autosaved = FALSE; } +/** + * e_msg_composer_get_raw_message_text: + * + * Returns the text/plain of the message from composer + **/ +const char * +e_msg_composer_get_raw_message_text (EMsgComposer *composer) +{ + GByteArray *data = NULL; + EMsgComposerPrivate *p = composer->priv; + g_return_val_if_fail (E_IS_MSG_COMPOSER (composer), NULL); + + data = get_text (p->persist_stream_interface, "text/plain"); + if (data) + return data->data; + + return NULL; +} + +EAttachmentBar* +e_msg_composer_get_attachment_bar (EMsgComposer *composer) +{ + EMsgComposerPrivate *p = composer->priv; + + return (EAttachmentBar*) p->attachment_bar; +} + gboolean e_msg_composer_is_autosaved (EMsgComposer *composer) { |