[gnome-system-log] loglist: use g_utf8_collate() to sort log display names
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-log] loglist: use g_utf8_collate() to sort log display names
- Date: Thu, 11 Apr 2013 18:21:12 +0000 (UTC)
commit d55c066dcfeff2ddf24152d192137b251cc5cbb6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 11 12:09:23 2013 -0400
loglist: use g_utf8_collate() to sort log display names
This ensures language-specific rules are used when ordering the list.
https://bugzilla.gnome.org/show_bug.cgi?id=697786
src/logview-loglist.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/logview-loglist.c b/src/logview-loglist.c
index f73163b..73c8771 100644
--- a/src/logview-loglist.c
+++ b/src/logview-loglist.c
@@ -351,7 +351,7 @@ loglist_sort_func (GtkTreeModel *model,
case 0:
gtk_tree_model_get (model, a, LOG_NAME, &name_a, -1);
gtk_tree_model_get (model, b, LOG_NAME, &name_b, -1);
- retval = g_strcmp0 (name_a, name_b);
+ retval = g_utf8_collate (name_a, name_b);
g_free (name_a);
g_free (name_b);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]