commit e829be88169ea9bb61b00c02a87e198c595459a5
parent 62686c8f6f942c79706ed12cdc97ea10aad8c016
Author: Paul <paul@claws-mail.org>
Date: Tue, 5 Sep 2017 16:08:30 +0100
fix bug 3892, 'build fails with enchant-2.1.0'
bumps the minimum required version of enchant to version 1.4.0
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -585,7 +585,7 @@ dnl enchant is used for spell checking
AC_MSG_CHECKING([whether to use enchant])
AC_MSG_RESULT($enable_enchant)
if test $enable_enchant = yes; then
- PKG_CHECK_MODULES(ENCHANT, enchant >= 1.0.0,
+ PKG_CHECK_MODULES(ENCHANT, enchant >= 1.4.0,
[
AC_DEFINE(USE_ENCHANT, 1, enchant)
echo "Building with enchant"
diff --git a/src/gtk/gtkaspell.c b/src/gtk/gtkaspell.c
@@ -1348,7 +1348,7 @@ static void add_word_to_personal_cb(GtkWidget *w, gpointer data)
{
GtkAspell *gtkaspell = (GtkAspell *) data;
- enchant_dict_add_to_pwl(gtkaspell->gtkaspeller->speller, gtkaspell->theword, strlen(gtkaspell->theword));
+ enchant_dict_add(gtkaspell->gtkaspeller->speller, gtkaspell->theword, strlen(gtkaspell->theword));
gtkaspell->ctx.check_word(gtkaspell->ctx.data);
gtkaspell_dict_changed(gtkaspell);