diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-22 02:38:04 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-22 02:38:04 +0800 |
commit | eb87301392618f045df2df70149c95f637179413 (patch) | |
tree | 506a1ea26372b069c1630571e1672e2462ba0bb4 /composer/e-msg-composer-hdrs.c | |
parent | fa02e427520a3d30c5f3d65dc58690a969f25097 (diff) | |
download | gsoc2013-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-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 2c27531bb8..e69c15efae 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -285,7 +285,7 @@ e_msg_composer_hdrs_to_message (EMsgComposerHdrs *hdrs, void e_msg_composer_hdrs_set_to (EMsgComposerHdrs *hdrs, - GList *to_list) + const GList *to_list) { EMsgComposerAddressEntry *entry; @@ -298,7 +298,7 @@ e_msg_composer_hdrs_set_to (EMsgComposerHdrs *hdrs, void e_msg_composer_hdrs_set_cc (EMsgComposerHdrs *hdrs, - GList *cc_list) + const GList *cc_list) { EMsgComposerAddressEntry *entry; @@ -311,7 +311,7 @@ e_msg_composer_hdrs_set_cc (EMsgComposerHdrs *hdrs, void e_msg_composer_hdrs_set_bcc (EMsgComposerHdrs *hdrs, - GList *bcc_list) + const GList *bcc_list) { EMsgComposerAddressEntry *entry; @@ -322,6 +322,20 @@ e_msg_composer_hdrs_set_bcc (EMsgComposerHdrs *hdrs, e_msg_composer_address_entry_set_list (entry, bcc_list); } +void +e_msg_composer_hdrs_set_subject (EMsgComposerHdrs *hdrs, + const char *subject) +{ + GtkEntry *entry; + + g_return_if_fail (hdrs != NULL); + g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs)); + g_return_if_fail (subject != NULL); + + entry = GTK_ENTRY (hdrs->priv->subject_entry); + gtk_entry_set_text (entry, subject); +} + GList * e_msg_composer_hdrs_get_to (EMsgComposerHdrs *hdrs) @@ -353,3 +367,12 @@ e_msg_composer_hdrs_get_bcc (EMsgComposerHdrs *hdrs) (E_MSG_COMPOSER_ADDRESS_ENTRY (hdrs->priv->bcc_entry)); } +const char * +e_msg_composer_hdrs_get_subject (EMsgComposerHdrs *hdrs) +{ + g_return_val_if_fail (hdrs != NULL, NULL); + g_return_val_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs), NULL); + + return gtk_entry_get_text + (GTK_ENTRY (hdrs->priv->subject_entry)); +} |