1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Description: Switch checks and functions for enchant-2
Existing sources check for and expect enchant-1. This patch switched the
pkg-config check to check for enchant-2, and updates one function to the
enchant-2 version.
Author: Jonathon Fernyhough <jonathon at_manjaro_dot org>
--- configure.ac 2018-02-24 10:33:32.311420000 +0000
+++ configure.ac 2018-02-24 10:32:33.630608000 +0000
@@ -140,7 +140,7 @@ AC_SUBST(GAIL_MODULES)
dnl **********************************
dnl GTKHTML modules
dnl **********************************
-GTKHTML_MODULES="gtk+-3.0 >= gtk_minimum_version enchant >= enchant_minimum_version gsettings-desktop-schemas iso-codes cairo >= cairo_minimum_version"
+GTKHTML_MODULES="gtk+-3.0 >= gtk_minimum_version enchant-2 >= enchant_minimum_version gsettings-desktop-schemas iso-codes cairo >= cairo_minimum_version"
PKG_CHECK_MODULES(GTKHTML, $GTKHTML_MODULES)
AC_SUBST(GTKHTML_CFLAGS)
AC_SUBST(GTKHTML_LIBS)
--- components/editor/gtkhtml-spell-checker.c 2018-02-24 10:36:50.592732000 +0000
+++ components/editor/gtkhtml-spell-checker.c 2018-02-24 10:41:41.450950010 +0000
@@ -375,7 +375,7 @@ gtkhtml_spell_checker_add_word (GtkhtmlS
if ((dict = spell_checker_request_dict (checker)) == NULL)
return;
- enchant_dict_add_to_pwl (dict, word, length);
+ enchant_dict_add (dict, word, length);
g_signal_emit (G_OBJECT (checker), signals[ADDED], 0, word, length);
}
|