aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-25 12:12:04 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-11-25 12:12:04 +0800
commitd232a36141d0d10bba27d4e9816007c7ab5ae6c0 (patch)
tree51c2ac2bbae30e75639a9c0c0e4358c1acc78a4b /calendar
parent72ac59b437d531eadecef28bade47134bc1b75e6 (diff)
downloadgsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar.gz
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar.bz2
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar.lz
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar.xz
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.tar.zst
gsoc2013-evolution-d232a36141d0d10bba27d4e9816007c7ab5ae6c0.zip
gui/e-itip-control.c Use g_ascii_strcasecmp() instead of strcasecmp() for
2005-11-25 Tor Lillqvist <tml@novell.com> * gui/e-itip-control.c * gui/itip-utils.c: Use g_ascii_strcasecmp() instead of strcasecmp() for portability. svn path=/trunk/; revision=30665
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/e-itip-control.c4
-rw-r--r--calendar/gui/itip-utils.c12
3 files changed, 14 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b87657764f..7763066c89 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-25 Tor Lillqvist <tml@novell.com>
+
+ * gui/e-itip-control.c
+ * gui/itip-utils.c: Use g_ascii_strcasecmp() instead of
+ strcasecmp() for portability.
+
2005-11-24 Srinivasa Ragavan and P.S.Chakravarthi <sragavan@novell.com>, <pchakravarthi@novell.com>
(simultaneously a patch for configure.in in evolution source dir is
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index be4f3e3f61..99c42a25cb 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -639,7 +639,7 @@ find_attendee (icalcomponent *ical_comp, const char *address)
text = g_strdup (itip_strip_mailto (attendee));
text = g_strstrip (text);
- if (!g_strcasecmp (address, text)) {
+ if (!g_ascii_strcasecmp (address, text)) {
g_free (text);
break;
}
@@ -2499,7 +2499,7 @@ ok_clicked_cb (GtkWidget *widget, gpointer data)
text = g_strdup (itip_strip_mailto (attendee));
text = g_strstrip (text);
- if (g_strcasecmp (priv->my_address, text))
+ if (g_ascii_strcasecmp (priv->my_address, text))
list = g_slist_prepend (list, prop);
g_free (text);
}
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 4230b9b8be..a3c32e4878 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -104,7 +104,7 @@ itip_organizer_is_user (ECalComponent *comp, ECal *client)
if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS)) {
char *email = NULL;
- if (e_cal_get_cal_address (client, &email, NULL) && !g_strcasecmp (email, strip)) {
+ if (e_cal_get_cal_address (client, &email, NULL) && !g_ascii_strcasecmp (email, strip)) {
g_free (email);
return TRUE;
@@ -218,7 +218,7 @@ itip_strip_mailto (const gchar *address)
if (address == NULL)
return NULL;
- if (!g_strncasecmp (address, "mailto:", 7))
+ if (!g_ascii_strncasecmp (address, "mailto:", 7))
address += 7;
return address;
@@ -315,7 +315,7 @@ users_has_attendee (GList *users, const char *address)
GList *l;
for (l = users; l != NULL; l = l->next) {
- if (!g_strcasecmp (address, l->data))
+ if (!g_ascii_strcasecmp (address, l->data))
return TRUE;
}
@@ -407,9 +407,9 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users)
if (users_has_attendee (users, att->value))
continue;
- else if (!g_strcasecmp (att->value, organizer.value))
+ else if (!g_ascii_strcasecmp (att->value, organizer.value))
continue;
- else if (!g_strcasecmp (itip_strip_mailto (att->value), sender))
+ else if (!g_ascii_strcasecmp (itip_strip_mailto (att->value), sender))
continue;
else if (att->status == ICAL_PARTSTAT_DELEGATED && (att->delto && *att->delto)
&& !(att->rsvp) && method == E_CAL_COMPONENT_METHOD_REQUEST)
@@ -463,7 +463,7 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users)
for (l = attendees; l != NULL; l = l->next) {
ECalComponentAttendee *att = l->data;
- if (!g_strcasecmp (itip_strip_mailto (att->value), sender)){
+ if (!g_ascii_strcasecmp (itip_strip_mailto (att->value), sender)){
if (!(att->delfrom && *att->delfrom))
break;