diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-12-17 03:23:18 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-12-17 03:23:18 +0800 |
commit | aed127b4f487bc6026b1c89eeb7034973511ba6b (patch) | |
tree | a22a042996542bb61aa2ef40769851e9fb05fd72 /composer/evolution-composer.c | |
parent | 2f1a1a22feb83e27635bb25658ae6b4103285878 (diff) | |
download | gsoc2013-evolution-aed127b4f487bc6026b1c89eeb7034973511ba6b.tar.gz gsoc2013-evolution-aed127b4f487bc6026b1c89eeb7034973511ba6b.tar.zst gsoc2013-evolution-aed127b4f487bc6026b1c89eeb7034973511ba6b.zip |
Use camel_text_to_html(). (e_msg_composer_new_from_url): Same.
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (get_signature_html): Use camel_text_to_html().
(e_msg_composer_new_from_url): Same.
* evolution-composer.c (impl_Composer_set_body): Use
camel_text_to_html().
svn path=/trunk/; revision=19127
Diffstat (limited to 'composer/evolution-composer.c')
-rw-r--r-- | composer/evolution-composer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index be540b8d2e..cef0110413 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -33,7 +33,6 @@ #include <camel/camel.h> #include "evolution-composer.h" #include "mail/mail-config.h" -#include "e-util/e-html-utils.h" #define PARENT_TYPE BONOBO_OBJECT_TYPE static BonoboObjectClass *parent_class = NULL; @@ -95,7 +94,7 @@ impl_Composer_set_headers (PortableServer_Servant servant, accounts = mail_config_get_accounts (); while (accounts) { account = accounts->data; - if (!g_strcasecmp (account->id->address, from)) + if (!strcasecmp (account->id->address, from)) break; accounts = accounts->next; } @@ -144,11 +143,12 @@ impl_Composer_set_body (PortableServer_Servant servant, bonobo_object = bonobo_object_from_servant (servant); composer = EVOLUTION_COMPOSER (bonobo_object); - if (!g_strcasecmp (mime_type, "text/plain")) { - char *htmlbody = e_text_to_html (body, E_TEXT_TO_HTML_PRE); + if (!strcasecmp (mime_type, "text/plain")) { + char *htmlbody = camel_text_to_html (body, CAMEL_MIME_FILTER_TOHTML_PRE, 0); + e_msg_composer_set_body_text (composer->composer, htmlbody); g_free (htmlbody); - } else if (!g_strcasecmp (mime_type, "text/html")) + } else if (!strcasecmp (mime_type, "text/html")) e_msg_composer_set_body_text (composer->composer, body); else e_msg_composer_set_body (composer->composer, body, mime_type); |