aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 21:29:21 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 21:29:21 +0800
commit682da241dd4c78ac40fcc3ce65da9b8f94901f15 (patch)
tree7ac07f8e928e55b6bca26b2561f8adf2ab6c16ad
parentcf76cec2327f91e256b5920d6fbbcb8bcc75daf3 (diff)
downloadgsoc2013-evolution-682da241dd4c78ac40fcc3ce65da9b8f94901f15.tar.gz
gsoc2013-evolution-682da241dd4c78ac40fcc3ce65da9b8f94901f15.tar.zst
gsoc2013-evolution-682da241dd4c78ac40fcc3ce65da9b8f94901f15.zip
Use e_util_utf8_strcasecmp() to do proper comparison of translated (UTF-8)
2005-12-17 Tor Lillqvist <tml@novell.com> * gui/e-cal-model-tasks.c: Use e_util_utf8_strcasecmp() to do proper comparison of translated (UTF-8) strings. svn path=/trunk/; revision=30807
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/e-cal-model-tasks.c11
2 files changed, 9 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 52f2eb7ff7..a307bc965c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -6,6 +6,9 @@
* gui/e-cal-list-view.c: Use gstdio wrappers.
+ * gui/e-cal-model-tasks.c: Use e_util_utf8_strcasecmp() to do
+ proper comparison of translated (UTF-8) strings.
+
2005-12-15 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #324094
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c
index 5b0adca17e..fd27f2d7b3 100644
--- a/calendar/gui/e-cal-model-tasks.c
+++ b/calendar/gui/e-cal-model-tasks.c
@@ -26,6 +26,7 @@
#include <string.h>
#include <gtk/gtkmessagedialog.h>
#include <libgnome/gnome-i18n.h>
+#include <libedataserver/e-util.h>
#include "calendar-config.h"
#include "e-cal-model-tasks.h"
#include "e-cell-date-edit-text.h"
@@ -650,15 +651,15 @@ set_status (ECalModelComponent *comp_data, const char *value)
prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_STATUS_PROPERTY);
/* an empty string is the same as 'None' */
- if (!value[0] || !g_strcasecmp (value, _("None")))
+ if (!value[0] || !e_util_utf8_strcasecmp (value, _("None")))
status = ICAL_STATUS_NONE;
- else if (!g_strcasecmp (value, _("Not Started")))
+ else if (!e_util_utf8_strcasecmp (value, _("Not Started")))
status = ICAL_STATUS_NEEDSACTION;
- else if (!g_strcasecmp (value, _("In Progress")))
+ else if (!e_util_utf8_strcasecmp (value, _("In Progress")))
status = ICAL_STATUS_INPROCESS;
- else if (!g_strcasecmp (value, _("Completed")))
+ else if (!e_util_utf8_strcasecmp (value, _("Completed")))
status = ICAL_STATUS_COMPLETED;
- else if (!g_strcasecmp (value, _("Cancelled")))
+ else if (!e_util_utf8_strcasecmp (value, _("Cancelled")))
status = ICAL_STATUS_CANCELLED;
else {
g_warning ("Invalid status: %s\n", value);