[gnome-calendar] window: use case-insensitive sorting in the calendar list
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: use case-insensitive sorting in the calendar list
- Date: Mon, 24 Apr 2017 12:57:23 +0000 (UTC)
commit 7798f38ad94db42ac56b71450ab8ca1b16add30f
Author: Evgeny Shulgin <izarizar mail ru>
Date: Thu Apr 20 20:01:02 2017 +0300
window: use case-insensitive sorting in the calendar list
g_strcmp0() is used when comparing the display name of the ESource.
This is not a valid sort, because in this case we will get an order
like "a" < "z" < "B" < "Z", but it should be like "a", "B", "z", "Z".
We will use g_ascii_strcasecmp to fix it.
https://bugzilla.gnome.org/show_bug.cgi?id=781231
src/gcal-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index e691a3c..e20bb7b 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -504,7 +504,7 @@ calendar_listbox_sort_func (GtkListBoxRow *row1,
if (source1 == NULL && source2 == NULL)
return 0;
- return g_strcmp0 (e_source_get_display_name (source1), e_source_get_display_name (source2));
+ return g_ascii_strcasecmp (e_source_get_display_name (source1), e_source_get_display_name (source2));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]