[gnome-todo] Correcting task alphabetic indexing with accentuated characters
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] Correcting task alphabetic indexing with accentuated characters
- Date: Fri, 30 Mar 2018 22:14:36 +0000 (UTC)
commit a316b14ed9ef244efd32a0bcc4ce0ec130505814
Author: Kainaat Singh <kainaat singh gmail com>
Date: Fri Dec 22 19:10:58 2017 +0530
Correcting task alphabetic indexing with accentuated characters
src/views/gtd-list-selector-grid.c | 4 ++--
src/views/gtd-list-selector-list.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/views/gtd-list-selector-grid.c b/src/views/gtd-list-selector-grid.c
index 7c6f21f..1088d15 100644
--- a/src/views/gtd-list-selector-grid.c
+++ b/src/views/gtd-list-selector-grid.c
@@ -114,8 +114,8 @@ gtd_list_selector_grid_sort_func (GtdListSelectorItem *a,
if (retval != 0)
return retval;
- name1 = g_utf8_casefold (gtd_task_list_get_name (l1), -1);
- name2 = g_utf8_casefold (gtd_task_list_get_name (l2), -1);
+ name1 = g_utf8_collate_key (gtd_task_list_get_name (l1), -1);
+ name2 = g_utf8_collate_key (gtd_task_list_get_name (l2), -1);
retval = g_strcmp0 (name1, name2);
diff --git a/src/views/gtd-list-selector-list.c b/src/views/gtd-list-selector-list.c
index fce81a3..5ff3ce7 100644
--- a/src/views/gtd-list-selector-list.c
+++ b/src/views/gtd-list-selector-list.c
@@ -167,8 +167,8 @@ sort_func (GtdListSelectorItem *a,
if (retval != 0)
return retval;
- name1 = g_utf8_casefold (gtd_task_list_get_name (l1), -1);
- name2 = g_utf8_casefold (gtd_task_list_get_name (l2), -1);
+ name1 = g_utf8_collate_key (gtd_task_list_get_name (l1), -1);
+ name2 = g_utf8_collate_key (gtd_task_list_get_name (l2), -1);
retval = g_strcmp0 (name1, name2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]