From 0a9fdd88421c68d3ecdd88bb220c72b111f1fe55 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 7 Aug 2000 18:32:55 +0000 Subject: s/strncasecmp/g_strncasecmp 2000-08-07 Jeffrey Stedfast * mail-display.c: * component-factory.c: s/strncasecmp/g_strncasecmp * mail-format.c (write_headers): Get rid of kludge around subject beginning with spaces. (mail_generate_reply): Get rid of kludge around subject beginning with spaces and also use g_strncasecmp instead of strncasecmp for portability * mail-ops.c (forward_msg): Get rid of kludges around subject beginning with spaces. svn path=/trunk/; revision=4575 --- mail/ChangeLog | 3 +++ mail/component-factory.c | 4 ++-- mail/mail-display.c | 10 +++++----- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index a72ff8b00f..9ed36b74bd 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2000-08-07 Jeffrey Stedfast + * mail-display.c: + * component-factory.c: s/strncasecmp/g_strncasecmp + * mail-format.c (write_headers): Get rid of kludge around subject beginning with spaces. (mail_generate_reply): Get rid of kludge around subject beginning diff --git a/mail/component-factory.c b/mail/component-factory.c index 8130800137..7b01bd91e1 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -259,7 +259,7 @@ create_imap_storage (EvolutionShellComponent *shell_component) source = s->url; } - if (!source || strncasecmp (source, "imap://", 7)) + if (!source || g_strncasecmp (source, "imap://", 7)) return; shell_client = evolution_shell_component_get_owner (shell_component); @@ -402,7 +402,7 @@ create_news_storage (EvolutionShellComponent *shell_component) source = s->url; } - if (!source || strncasecmp (source, "news://", 7)) + if (!source || g_strncasecmp (source, "news://", 7)) return; shell_client = evolution_shell_component_get_owner (shell_component); diff --git a/mail/mail-display.c b/mail/mail-display.c index 3af2ec1b15..3603cfb41f 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -220,14 +220,14 @@ on_link_clicked (GtkHTML *html, const char *url, gpointer user_data) message = gtk_object_get_data (GTK_OBJECT (html), "message"); - if (!strncasecmp (url, "news:", 5) || - !strncasecmp (url, "nntp:", 5)) + if (!g_strncasecmp (url, "news:", 5) || + !g_strncasecmp (url, "nntp:", 5)) g_warning ("Can't handle news URLs yet."); - else if (!strncasecmp (url, "mailto:", 7)) + else if (!g_strncasecmp (url, "mailto:", 7)) send_to_url (url); - else if (!strncasecmp (url, "cid:", 4)) + else if (!g_strncasecmp (url, "cid:", 4)) save_data (url, message); - else if (!strncasecmp (url, "x-evolution-external:", 21)) + else if (!g_strncasecmp (url, "x-evolution-external:", 21)) launch_external (url, message); else gnome_url_show (url); -- cgit v1.2.3