summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-11-14 15:39:13 +0100
committerBenjamin Otte <otte@gnome.org>2008-11-14 15:39:13 +0100
commit5cb5bfd415cdd1ef5d4f4581815f55fe9259bd1e (patch)
tree31601bc4c6f15778e7ebe131b742181340fadbab
parent1033c2af60e085247364fae7ae126538346a87de (diff)
g_strcasecmp => g_ascii_strcasecmp
The first symbol is deprecated. I'm not sure this works for caseinsensitive sorting, but there's no test indicating otherwise.
-rw-r--r--swfdec/swfdec_as_array.c2
-rw-r--r--swfdec/swfdec_text_field_movie_as.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/swfdec/swfdec_as_array.c b/swfdec/swfdec_as_array.c
index 592b6a87..62729e0b 100644
--- a/swfdec/swfdec_as_array.c
+++ b/swfdec/swfdec_as_array.c
@@ -886,7 +886,7 @@ swfdec_as_array_sort_compare_values (SwfdecAsContext *cx,
const char *b_str = swfdec_as_value_to_string (cx, *b);
if (options & SORT_OPTION_CASEINSENSITIVE) {
- retval = g_strcasecmp (a_str, b_str);
+ retval = g_ascii_strcasecmp (a_str, b_str);
} else {
retval = strcmp (a_str, b_str);
}
diff --git a/swfdec/swfdec_text_field_movie_as.c b/swfdec/swfdec_text_field_movie_as.c
index a4298834..fd432105 100644
--- a/swfdec/swfdec_text_field_movie_as.c
+++ b/swfdec/swfdec_text_field_movie_as.c
@@ -372,9 +372,9 @@ swfdec_text_field_movie_do_set_type (SwfdecAsContext *cx,
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "s", &value);
- if (!g_strcasecmp (value, SWFDEC_AS_STR_input)) {
+ if (!g_ascii_strcasecmp (value, SWFDEC_AS_STR_input)) {
text->editable = TRUE;
- } else if (!g_strcasecmp (value, SWFDEC_AS_STR_dynamic)) {
+ } else if (!g_ascii_strcasecmp (value, SWFDEC_AS_STR_dynamic)) {
text->editable = FALSE;
}
/* else ignore */