[gnome-boxes] Use g_utf8_collate when sorting boxes
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Use g_utf8_collate when sorting boxes
- Date: Mon, 11 Jun 2012 12:09:59 +0000 (UTC)
commit 169b5a9f9a6682ff872d4833618993d89c1e1011
Author: Christophe Fergeau <cfergeau redhat com>
Date: Fri Jun 8 17:00:32 2012 +0200
Use g_utf8_collate when sorting boxes
Sort the list of boxes shown to the user according to the sorting
rules in use for his locale. For now this does not really matter
since boxes names are only 7bit ASCII chars, but this will become
an issue once the user can name his boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=677391
src/collection-view.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 7f7a6c0..562ddbc 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -194,7 +194,7 @@ private class Boxes.CollectionView: Boxes.UI {
if (item_a == null || item_b == null) // FIXME?!
return 0;
- return strcmp (item_a.title.down (), item_b.title.down ());
+ return item_a.title.collate (item_b.title);
});
model.set_sort_column_id (Gtk.SortColumn.DEFAULT, Gtk.SortType.ASCENDING);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]