[nautilus] file: use g_list_sort() directly
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: use g_list_sort() directly
- Date: Wed, 11 Apr 2012 16:15:59 +0000 (UTC)
commit 09eef4325e3509a79e8ae1f060087b4dd21a2b70
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 11 10:55:55 2012 -0400
file: use g_list_sort() directly
Instead of eel_g_list_alphabetize()
libnautilus-private/nautilus-file.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index e29ed14..212cbe1 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -5440,7 +5440,7 @@ nautilus_get_user_names (void)
endpwent ();
- return eel_g_str_list_alphabetize (list);
+ return g_list_sort (list, (GCompareFunc) g_utf8_collate);
}
/**
@@ -5543,7 +5543,7 @@ nautilus_get_group_names_for_user (void)
list = g_list_prepend (list, g_strdup (group->gr_name));
}
- return eel_g_str_list_alphabetize (list);
+ return g_list_sort (list, (GCompareFunc) g_utf8_collate);
}
/**
@@ -5566,7 +5566,7 @@ nautilus_get_all_group_names (void)
endgrent ();
- return eel_g_str_list_alphabetize (list);
+ return g_list_sort (list, (GCompareFunc) g_utf8_collate);
}
/**
@@ -6494,7 +6494,7 @@ sort_keyword_list_and_remove_duplicates (GList *keywords)
GList *duplicate_link;
if (keywords != NULL) {
- keywords = eel_g_str_list_alphabetize (keywords);
+ keywords = g_list_sort (keywords, (GCompareFunc) g_utf8_collate);
p = keywords;
while (p->next != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]