[evolution/wip/webkit-composer: 171/372] e_spell_checker_list_available_dicts: Sort the list.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 171/372] e_spell_checker_list_available_dicts: Sort the list.
- Date: Thu, 6 Feb 2014 11:37:52 +0000 (UTC)
commit 039326edfa5b6ffa7088ef46ff4b86ff0b7c75dc
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jan 10 09:41:20 2013 -0500
e_spell_checker_list_available_dicts: Sort the list.
e-util/e-spell-checker.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-spell-checker.c b/e-util/e-spell-checker.c
index eb11191..aad7c45 100644
--- a/e-util/e-spell-checker.c
+++ b/e-util/e-spell-checker.c
@@ -397,6 +397,8 @@ list_enchant_dicts (const char * const lang_tag,
GList *
e_spell_checker_list_available_dicts (ESpellChecker *checker)
{
+ GList *list;
+
g_return_val_if_fail (E_IS_SPELL_CHECKER (checker), NULL);
if (checker->priv->dictionaries_cache == NULL) {
@@ -407,7 +409,9 @@ e_spell_checker_list_available_dicts (ESpellChecker *checker)
checker->priv->broker, list_enchant_dicts, checker);
}
- return g_hash_table_get_values (checker->priv->dictionaries_cache);
+ list = g_hash_table_get_values (checker->priv->dictionaries_cache);
+
+ return g_list_sort (list, (GCompareFunc) e_spell_dictionary_compare);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]