enchant-2.patch 1.2 KB

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