summarylogtreecommitdiffstats
path: root/enchant-2.patch
diff options
context:
space:
mode:
authorJelle van der Waa2020-05-07 17:04:35 +0200
committerJelle van der Waa2020-05-07 17:04:35 +0200
commit1c813f3ffa984d538f6a7d1f263000c588bf7931 (patch)
tree413e22cc9d0f62ebe6da7abed5fc1234edb33d53 /enchant-2.patch
downloadaur-1c813f3ffa984d538f6a7d1f263000c588bf7931.tar.gz
import from community
Diffstat (limited to 'enchant-2.patch')
-rw-r--r--enchant-2.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/enchant-2.patch b/enchant-2.patch
new file mode 100644
index 00000000000..f80a52216d4
--- /dev/null
+++ b/enchant-2.patch
@@ -0,0 +1,39 @@
+ configure.ac | 4 ++--
+ libempathy-gtk/empathy-spell.c | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git c/configure.ac i/configure.ac
+index 7aeb6b31c..31e5b847b 100644
+--- c/configure.ac
++++ i/configure.ac
+@@ -72,7 +72,7 @@ WEBKIT_REQUIRED=2.10.0
+ GOA_REQUIRED=3.5.1
+
+ # Optional deps
+-ENCHANT_REQUIRED=1.2.0
++ENCHANT_REQUIRED=2.2.0
+ GEOCLUE_REQUIRED=2.1.0
+ GEOCODE_GLIB_REQUIRED=0.99.1
+ ISO_CODES_REQUIRED=0.35
+@@ -307,7 +307,7 @@ AC_ARG_ENABLE(spell,
+ if test "x$enable_spell" != "xno"; then
+ PKG_CHECK_MODULES(ENCHANT,
+ [
+- enchant >= $ENCHANT_REQUIRED,
++ enchant-2 >= $ENCHANT_REQUIRED,
+ iso-codes >= $ISO_CODES_REQUIRED
+ ], have_enchant="yes", have_enchant="no")
+
+diff --git c/libempathy-gtk/empathy-spell.c i/libempathy-gtk/empathy-spell.c
+index 27f27f902..bb0159fd8 100644
+--- c/libempathy-gtk/empathy-spell.c
++++ i/libempathy-gtk/empathy-spell.c
+@@ -424,7 +424,7 @@ empathy_spell_add_to_dictionary (const gchar *code,
+ if (lang == NULL)
+ return;
+
+- enchant_dict_add_to_pwl (lang->speller, word, strlen (word));
++ enchant_dict_add (lang->speller, word, strlen (word));
+ }
+
+ #else /* not HAVE_ENCHANT */