aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-22 02:38:04 +0800
committerDan Winship <danw@src.gnome.org>2000-04-22 02:38:04 +0800
commiteb87301392618f045df2df70149c95f637179413 (patch)
tree506a1ea26372b069c1630571e1672e2462ba0bb4 /composer/e-msg-composer.c
parentfa02e427520a3d30c5f3d65dc58690a969f25097 (diff)
downloadgsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar.gz
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar.bz2
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar.lz
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar.xz
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.tar.zst
gsoc2013-evolution-eb87301392618f045df2df70149c95f637179413.zip
new functions
* e-msg-composer.c (e_msg_composer_set_headers): (e_msg_composer_set_body_text): new functions * e-msg-composer-hdrs.c: const poisoning (e_msg_composer_hdrs_set_subject): (e_msg_composer_hdrs_get_subject): new functions * e-msg-composer-address-entry.c: const poisoning svn path=/trunk/; revision=2548
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 3db5180972..220880ee4c 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -641,6 +641,49 @@ e_msg_composer_show_attachments (EMsgComposer *composer,
/**
+ * e_msg_composer_set_headers:
+ * @composer: a composer object
+ * @to: the values for the "To" header
+ * @cc: the values for the "Cc" header
+ * @bcc: the values for the "Bcc" header
+ * @subject: the value for the "Subject" header
+ *
+ * Sets the headers in the composer to the given values.
+ **/
+void
+e_msg_composer_set_headers (EMsgComposer *composer, const GList *to,
+ const GList *cc, const GList *bcc,
+ const char *subject)
+{
+ EMsgComposerHdrs *hdrs;
+
+ g_return_if_fail (E_IS_MSG_COMPOSER (composer));
+ hdrs = E_MSG_COMPOSER_HDRS (composer->hdrs);
+
+ e_msg_composer_hdrs_set_to (hdrs, to);
+ e_msg_composer_hdrs_set_cc (hdrs, cc);
+ e_msg_composer_hdrs_set_bcc (hdrs, bcc);
+ e_msg_composer_hdrs_set_subject (hdrs, subject);
+}
+
+
+/**
+ * e_msg_composer_set_body_text:
+ * @composer: a composer object
+ * @text: the HTML text to initialize the editor with
+ *
+ * Loads the given HTML text into the editor.
+ **/
+void
+e_msg_composer_set_body_text (EMsgComposer *composer, const char *text)
+{
+ g_return_if_fail (E_IS_MSG_COMPOSER (composer));
+
+ set_editor_text (BONOBO_WIDGET (composer->editor), text);
+}
+
+
+/**
* e_msg_composer_get_message:
* @composer: A message composer widget
*