[gnome-calendar/gnome-3-24] source-dialog: 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/gnome-3-24] source-dialog: use case-insensitive sorting in the calendar list
- Date: Mon, 24 Apr 2017 13:22:29 +0000 (UTC)
commit fab9f123add6e3f92839af88533670c11f61ef81
Author: Evgeny Shulgin <izarizar mail ru>
Date: Thu Apr 20 19:46:49 2017 +0300
source-dialog: 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-source-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 0378850..9eb41bc 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -392,7 +392,7 @@ calendar_listbox_sort_func (GtkListBoxRow *row1,
// If they have the same parent names, compare by the source display names
if (retval == 0)
- retval = g_strcmp0 (e_source_get_display_name (source1), e_source_get_display_name (source2));
+ retval = g_ascii_strcasecmp (e_source_get_display_name (source1), e_source_get_display_name
(source2));
g_free (parent_name1);
g_free (parent_name2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]