[libcroco] Use case-insensitive string comparision of colour names
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libcroco] Use case-insensitive string comparision of colour names
- Date: Sun, 11 Dec 2011 20:19:46 +0000 (UTC)
commit 34d461d48888047a9ea91bee54e37ce16e38fc8d
Author: Christian Persch <chpe gnome org>
Date: Sun Dec 11 21:15:50 2011 +0100
Use case-insensitive string comparision of colour names
https://bugzilla.gnome.org/show_bug.cgi?id=459403
src/cr-rgb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/cr-rgb.c b/src/cr-rgb.c
index 7a82459..ffd7746 100644
--- a/src/cr-rgb.c
+++ b/src/cr-rgb.c
@@ -459,7 +459,7 @@ cr_rgb_color_name_compare (const void *a,
const char *a_color_name = a;
const CRRgb *rgb = b;
- return strcmp (a_color_name, (const char *) rgb->name);
+ return g_ascii_strcasecmp (a_color_name, (const char *) rgb->name);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]