spell-plugin: Update for removal of some deprecated functionality

enchant_dict_add_to_pwl () was removed from libenchant. Use it's replacement,
enchant_dict_add () instead and bump our required version of libenchant.

Closes https://github.com/linuxmint/xed/issues/198
This commit is contained in:
JosephMcc 2017-12-10 15:38:15 -08:00
parent a5af28a95d
commit 0a25600883
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ dnl ================================================================
dnl spell plugins checks: enchant and iso-codes dnl spell plugins checks: enchant and iso-codes
dnl ================================================================ dnl ================================================================
ENCHANT_REQUIRED=1.2.0 ENCHANT_REQUIRED=1.6.0
ISO_CODES_REQUIRED=0.35 ISO_CODES_REQUIRED=0.35
AC_ARG_ENABLE([spell], AC_ARG_ENABLE([spell],

View File

@ -465,7 +465,7 @@ xed_spell_checker_add_word_to_personal (XedSpellChecker *spell,
len = strlen (word); len = strlen (word);
} }
enchant_dict_add_to_pwl (spell->dict, word, len); enchant_dict_add (spell->dict, word, len);
g_signal_emit (G_OBJECT (spell), signals[ADD_WORD_TO_PERSONAL], 0, word, len); g_signal_emit (G_OBJECT (spell), signals[ADD_WORD_TO_PERSONAL], 0, word, len);