102.11.0-1
[arch-packages.git] / empathy / trunk / enchant-2.patch
blobf80a52216d43688f8c7d753e5b23b00ebff9b7b4
1 configure.ac | 4 ++--
2 libempathy-gtk/empathy-spell.c | 2 +-
3 2 files changed, 3 insertions(+), 3 deletions(-)
5 diff --git c/configure.ac i/configure.ac
6 index 7aeb6b31c..31e5b847b 100644
7 --- c/configure.ac
8 +++ i/configure.ac
9 @@ -72,7 +72,7 @@ WEBKIT_REQUIRED=2.10.0
10 GOA_REQUIRED=3.5.1
12 # Optional deps
13 -ENCHANT_REQUIRED=1.2.0
14 +ENCHANT_REQUIRED=2.2.0
15 GEOCLUE_REQUIRED=2.1.0
16 GEOCODE_GLIB_REQUIRED=0.99.1
17 ISO_CODES_REQUIRED=0.35
18 @@ -307,7 +307,7 @@ AC_ARG_ENABLE(spell,
19 if test "x$enable_spell" != "xno"; then
20 PKG_CHECK_MODULES(ENCHANT,
22 - enchant >= $ENCHANT_REQUIRED,
23 + enchant-2 >= $ENCHANT_REQUIRED,
24 iso-codes >= $ISO_CODES_REQUIRED
25 ], have_enchant="yes", have_enchant="no")
27 diff --git c/libempathy-gtk/empathy-spell.c i/libempathy-gtk/empathy-spell.c
28 index 27f27f902..bb0159fd8 100644
29 --- c/libempathy-gtk/empathy-spell.c
30 +++ i/libempathy-gtk/empathy-spell.c
31 @@ -424,7 +424,7 @@ empathy_spell_add_to_dictionary (const gchar *code,
32 if (lang == NULL)
33 return;
35 - enchant_dict_add_to_pwl (lang->speller, word, strlen (word));
36 + enchant_dict_add (lang->speller, word, strlen (word));
39 #else /* not HAVE_ENCHANT */