diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-08 02:32:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-08 02:32:55 +0800 |
commit | 0a9fdd88421c68d3ecdd88bb220c72b111f1fe55 (patch) | |
tree | 82981ed9817f00bb47d3c2806005b2d08105a3a3 /mail | |
parent | f433ddf7b23823f50017a9b6232fccebeaf142bf (diff) | |
download | gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar.gz gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar.bz2 gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar.lz gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar.xz gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.tar.zst gsoc2013-evolution-0a9fdd88421c68d3ecdd88bb220c72b111f1fe55.zip |
s/strncasecmp/g_strncasecmp
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* 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
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/component-factory.c | 4 | ||||
-rw-r--r-- | mail/mail-display.c | 10 |
3 files changed, 10 insertions, 7 deletions
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 <fejj@helixcode.com> + * 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); |