diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-28 18:09:38 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-28 18:09:38 +0800 |
commit | 11ed217073533eaec516b02cd0a9dd4cd32d9b4d (patch) | |
tree | 3b6d9b0c0facdd6393d8e2552cdef2d0bc079ee1 /calendar | |
parent | a527f288125ec1f05e95346c90f85fe89563cc79 (diff) | |
download | gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.gz gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.bz2 gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.lz gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.xz gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.tar.zst gsoc2013-evolution-11ed217073533eaec516b02cd0a9dd4cd32d9b4d.zip |
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com>
* 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.
svn path=/trunk/; revision=30393
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/gui/e-cal-model.c | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 71632ccf0b..71fc1a6f25 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,9 +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. + * 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. 2005-09-08 P. S. Chakravarthi <pchakravarthi@novell.com> diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 0c6f3bb89a..795d47cf6a 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -543,11 +543,11 @@ set_classification (ECalModelComponent *comp_data, const char *value) } else { icalproperty_class ical_class; - if (!strcasecmp (value, "PUBLIC")) + if (!g_ascii_strcasecmp (value, "PUBLIC")) ical_class = ICAL_CLASS_PUBLIC; - else if (!strcasecmp (value, "PRIVATE")) + else if (!g_ascii_strcasecmp (value, "PRIVATE")) ical_class = ICAL_CLASS_PRIVATE; - else if (!strcasecmp (value, "CONFIDENTIAL")) + else if (!g_ascii_strcasecmp (value, "CONFIDENTIAL")) ical_class = ICAL_CLASS_CONFIDENTIAL; else ical_class = ICAL_CLASS_NONE; |