aboutsummaryrefslogtreecommitdiffstats
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
parent11ed217073533eaec516b02cd0a9dd4cd32d9b4d (diff)
downloadgsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.gz
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.bz2
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.lz
gsoc2013-evolution-bb1c36c74db8723120846cd74207cf4df1c127bc.tar.xz
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
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/itip-bonobo-control.c8
2 files changed, 9 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 71fc1a6f25..877fcd0f75 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,10 +1,11 @@
2005-09-28 Tor Lillqvist <tml@novell.com>
* gui/e-cal-model-calendar.c (set_transparency)
- * gui/e-cal-model.c (set_classification): Use g_ascii_strcasecmp()
- instead of strcasecmp(). We are comparing to literal ASCII
- strings, just casefolding ASCII is enough. Also better for
- portability.
+ * gui/e-cal-model.c (set_classification)
+ * 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.
2005-09-08 P. S. Chakravarthi <pchakravarthi@novell.com>
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;
}