diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 6e77d4ec51..7be0994fa0 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1061,6 +1061,26 @@ e_msg_composer_add_header (EMsgComposer *composer, const char *name, /** + * e_msg_composer_attach: + * @composer: a composer object + * @attachment: the CamelMimePart to attach + * + * Attaches @attachment to the message being composed in the composer. + **/ +void +e_msg_composer_attach (EMsgComposer *composer, CamelMimePart *attachment) +{ + EMsgComposerAttachmentBar *bar; + + g_return_if_fail (E_IS_MSG_COMPOSER (composer)); + g_return_if_fail (CAMEL_IS_MIME_PART (attachment)); + + bar = E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar); + e_msg_composer_attachment_bar_attach_mime_part (bar, attachment); +} + + +/** * e_msg_composer_get_message: * @composer: A message composer widget * |