[evolution] Bug 787646 - Replace deprecated and removed enchant API usage
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 787646 - Replace deprecated and removed enchant API usage
- Date: Mon, 18 Sep 2017 10:03:19 +0000 (UTC)
commit f5691e9a5f4d129c9b38cc9e259a561fdb88dd1a
Author: Guido Trentalancia <guido trentalancia com>
Date: Mon Sep 18 12:03:55 2017 +0200
Bug 787646 - Replace deprecated and removed enchant API usage
CMakeLists.txt | 2 +-
src/e-util/e-spell-dictionary.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f14494..97f959e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,7 @@ add_definitions(-DGDK_VERSION_MIN_REQUIRED=${gdk_encoded_version})
add_definitions(-DSOUP_VERSION_MIN_REQUIRED=${soup_encoded_version})
set(eds_minimum_version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
-set(enchant_minimum_version 1.1.7)
+set(enchant_minimum_version 1.6.0)
set(gcr_minimum_version 3.4)
set(gdk_pixbuf_minimum_version 2.24.0)
set(gnome_desktop_minimum_version 2.91.3)
diff --git a/src/e-util/e-spell-dictionary.c b/src/e-util/e-spell-dictionary.c
index ab89f55..f4f8db9 100644
--- a/src/e-util/e-spell-dictionary.c
+++ b/src/e-util/e-spell-dictionary.c
@@ -671,7 +671,7 @@ e_spell_dictionary_learn_word (ESpellDictionary *dictionary,
spell_checker, e_spell_dictionary_get_code (dictionary));
g_return_if_fail (enchant_dict != NULL);
- enchant_dict_add_to_personal (enchant_dict, word, length);
+ enchant_dict_add (enchant_dict, word, length);
g_object_unref (spell_checker);
}
@@ -751,7 +751,7 @@ e_spell_dictionary_get_suggestions (ESpellDictionary *dictionary,
suggestions = enchant_dict_suggest (enchant_dict, word, length, &count);
for (ii = 0; ii < count; ii++)
list = g_list_prepend (list, g_strdup (suggestions[ii]));
- enchant_dict_free_suggestions (enchant_dict, suggestions);
+ enchant_dict_free_string_list (enchant_dict, suggestions);
g_object_unref (spell_checker);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]