diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-18 07:32:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-18 07:32:07 +0800 |
commit | f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29 (patch) | |
tree | 07cd469fcbfacc6a4a282dfa00307afaf801bca9 /composer/e-msg-composer.c | |
parent | 99df61da47d51dcad35ec965be2b9acae491c8fa (diff) | |
download | gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar.gz gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar.bz2 gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar.lz gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar.xz gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.tar.zst gsoc2013-evolution-f4a030d2fa7f74ff382996c15d15b5e2b6f2fb29.zip |
Updated to use EAccountList and iterators. (evolution_composer_init):
2003-01-17 Jeffrey Stedfast <fejj@ximian.com>
* evolution-composer.c (impl_Composer_set_headers): Updated to use
EAccountList and iterators.
(evolution_composer_init): Updated to use EAccount.
* e-msg-composer.c (from_changed_cb): Updated to use the EAccount
object.
(e_msg_composer_new_with_message): Same.
(e_msg_composer_get_preferred_account): Updated to return an
EAccount object.
(set_editor_signature): Updated to use an EAccountIdentity pointer.
(get_signature_html): Same.
* e-msg-composer-hdrs.c (create_from_optionmenu): Updated to use
EAccount and EAccountList foo.
(destroy): Same here.
(e_msg_composer_hdrs_set_from_account): Here too.
(e_msg_composer_hdrs_get_from): Updated.
svn path=/trunk/; revision=19511
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 422abc406a..5abda1e209 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1008,7 +1008,7 @@ decode_signature_name (const gchar *name) #define CONVERT_SPACES CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES -static gchar * +static char * get_signature_html (EMsgComposer *composer) { gboolean format_html = FALSE; @@ -1019,7 +1019,7 @@ get_signature_html (EMsgComposer *composer) format_html = composer->signature->html; script = composer->signature->script; } else if (composer->auto_signature) { - MailConfigIdentity *id; + EAccountIdentity *id; char *organization; char *address; char *name; @@ -2303,7 +2303,7 @@ from_changed_cb (EMsgComposerHdrs *hdrs, void *data) composer = E_MSG_COMPOSER (data); if (hdrs->account) { - const MailConfigAccount *account = hdrs->account; + EAccount *account = hdrs->account; e_msg_composer_set_pgp_sign (composer, account->pgp_always_sign && @@ -2931,11 +2931,14 @@ set_editor_signature (EMsgComposer *composer) { /* printf ("set_editor_signature\n"); */ if (E_MSG_COMPOSER_HDRS (composer->hdrs)->account->id) { - MailConfigIdentity *id; + EAccountIdentity *id; + GSList *signatures; id = E_MSG_COMPOSER_HDRS (composer->hdrs)->account->id; - composer->signature = id->def_signature; + signatures = mail_config_get_signature_list (); + + composer->signature = g_slist_nth_data (signatures, id->def_signature); composer->auto_signature = id->auto_signature; /* printf ("auto: %d\n", id->auto_signature); */ @@ -3404,13 +3407,13 @@ e_msg_composer_new_with_message (CamelMimeMessage *message) { const CamelInternetAddress *to, *cc, *bcc; GList *To = NULL, *Cc = NULL, *Bcc = NULL; - const MailConfigAccount *account = NULL; const char *format, *subject, *postto; EDestination **Tov, **Ccv, **Bccv; GHashTable *auto_cc, *auto_bcc; CamelContentType *content_type; struct _header_raw *headers; CamelDataWrapper *content; + EAccount *account = NULL; char *account_name; EMsgComposer *new; XEvolution *xev; @@ -4070,7 +4073,7 @@ CamelMimeMessage * e_msg_composer_get_message_draft (EMsgComposer *composer) { CamelMimeMessage *msg; - const MailConfigAccount *account; + EAccount *account; gboolean old_send_html; gboolean old_pgp_sign; gboolean old_pgp_encrypt; @@ -4244,7 +4247,7 @@ e_msg_composer_get_send_html (EMsgComposer *composer) * * Returns the user-specified account (from field). */ -const MailConfigAccount * +EAccount * e_msg_composer_get_preferred_account (EMsgComposer *composer) { EMsgComposerHdrs *hdrs; |