aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-09-28 18:12:16 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-09-28 18:12:16 +0800
commitbb1c36c74db8723120846cd74207cf4df1c127bc (patch)
treef02c81fff503be98b7030577133e8fda43c6cdcb /calendar/gui
parent11ed217073533eaec516b02cd0a9dd4cd32d9b4d (diff)
downloadgsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.gz
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.zst
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.zip
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * gui/itip-bonobo-control.c (pstream_load, pstream_save): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings, just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30394
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/itip-bonobo-control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/itip-bonobo-control.c b/calendar/gui/itip-bonobo-control.c
index 391bc1f73d..0a7f61b172 100644
--- a/calendar/gui/itip-bonobo-control.c
+++ b/calendar/gui/itip-bonobo-control.c
@@ -121,8 +121,8 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream,
EItipControl *itip = data;
idle_data *id;
- if (type && g_strcasecmp (type, "text/calendar") != 0 &&
- g_strcasecmp (type, "text/x-calendar") != 0) {
+ if (type && g_ascii_strcasecmp (type, "text/calendar") != 0 &&
+ g_ascii_strcasecmp (type, "text/x-calendar") != 0) {
bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType);
return;
}
@@ -150,8 +150,8 @@ pstream_save (BonoboPersistStream *ps, const Bonobo_Stream stream,
gchar *text;
gint len;
- if (type && g_strcasecmp (type, "text/calendar") != 0 &&
- g_strcasecmp (type, "text/x-calendar") != 0) {
+ if (type && g_ascii_strcasecmp (type, "text/calendar") != 0 &&
+ g_ascii_strcasecmp (type, "text/x-calendar") != 0) {
bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType);
return;
}