aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-09-28 18:07:34 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-09-28 18:07:34 +0800
commita527f288125ec1f05e95346c90f85fe89563cc79 (patch)
tree0b03afb403f06756ca3062ca351681ebdaf0d635 /calendar
parent247a12697fd421a1e461ec85bb1ea569f18fcf13 (diff)
downloadgsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar.gz
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar.bz2
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar.lz
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar.xz
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.tar.zst
gsoc2013-evolution-a527f288125ec1f05e95346c90f85fe89563cc79.zip
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * gui/e-cal-model-calendar.c (set_transparency): 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=30392
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-cal-model-calendar.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 25b85c9816..71632ccf0b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-28 Tor Lillqvist <tml@novell.com>
+
+ * gui/e-cal-model-calendar.c (set_transparency): 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>
Fix #261625
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c
index a03ffe37a4..aa3d667b62 100644
--- a/calendar/gui/e-cal-model-calendar.c
+++ b/calendar/gui/e-cal-model-calendar.c
@@ -308,9 +308,9 @@ set_transparency (ECalModelComponent *comp_data, const void *value)
} else {
icalproperty_transp transp;
- if (!strcasecmp (value, "FREE"))
+ if (!g_ascii_strcasecmp (value, "FREE"))
transp = ICAL_TRANSP_TRANSPARENT;
- else if (!strcasecmp (value, "OPAQUE"))
+ else if (!g_ascii_strcasecmp (value, "OPAQUE"))
transp = ICAL_TRANSP_OPAQUE;
else {
if (prop) {