[evolution-data-server] e_categories_selector_get_checked: Return them always in the same order
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] e_categories_selector_get_checked: Return them always in the same order
- Date: Wed, 14 Dec 2011 11:54:51 +0000 (UTC)
commit aaeb815a4259d58735ca1f04f7c62dfe9365b9f0
Author: Milan Crha <mcrha redhat com>
Date: Wed Dec 14 12:54:07 2011 +0100
e_categories_selector_get_checked: Return them always in the same order
libedataserverui/e-categories-selector.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libedataserverui/e-categories-selector.c b/libedataserverui/e-categories-selector.c
index 985fbba..4b80e0c 100644
--- a/libedataserverui/e-categories-selector.c
+++ b/libedataserverui/e-categories-selector.c
@@ -403,6 +403,9 @@ e_categories_selector_get_checked (ECategoriesSelector *selector)
list = g_hash_table_get_values (selector->priv->selected_categories);
+ /* to get them always in the same order */
+ list = g_list_sort (list, (GCompareFunc) g_utf8_collate);
+
for (category = list; category != NULL; category = category->next) {
if (str->len > 0)
g_string_append_printf (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]