From 38d71c0a1563222ac3cd21592e9cf67cfad928d5 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 2 Feb 2004 05:05:07 +0000 Subject: use g_ascii_strcasecmp rather than strcasecmp. 2004-02-02 Not Zed * evolution-composer.c (impl_Composer_set_body): use g_ascii_strcasecmp rather than strcasecmp. ** See bug #53506, again. * e-msg-composer.c (set_editor_text): Add an argument to make adding the signature optional. Also fix a memleak with the sig content. (e_msg_composer_new_with_type, e_msg_composer_flush_pending_body) (handle_mailto, e_msg_composer_set_body_text) (e_msg_composer_set_body): Fixed callers for above change appropriately. svn path=/trunk/; revision=24562 --- composer/evolution-composer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'composer/evolution-composer.c') diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index 31da13c342..c028781de8 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -156,12 +156,12 @@ impl_Composer_set_body (PortableServer_Servant servant, bonobo_object = bonobo_object_from_servant (servant); composer = EVOLUTION_COMPOSER (bonobo_object); - if (!strcasecmp (mime_type, "text/plain")) { + if (!g_ascii_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 (!strcasecmp (mime_type, "text/html")) + } else if (!g_ascii_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); -- cgit v1.2.3