1 diff -u -r gtkspell-2.0.16/configure.ac gtkspell-2.0.16-enchant2/configure.ac
2 --- gtkspell-2.0.16/configure.ac 2009-10-23 04:52:31.000000000 +0200
3 +++ gtkspell-2.0.16-enchant2/configure.ac 2018-01-18 12:42:06.366410232 +0100
5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
6 AC_CONFIG_HEADERS([config.h])
9 +SPELLER_LIB=-lenchant-2
12 GTKSPELL_PACKAGES=gtk+-2.0
13 AC_SUBST(GTKSPELL_PACKAGES)
14 -PKG_CHECK_MODULES(GTKSPELL, $GTKSPELL_PACKAGES enchant >= 0.4.0 )
15 +PKG_CHECK_MODULES(GTKSPELL, $GTKSPELL_PACKAGES enchant-2 >= 2.2.0 )
16 AC_SUBST(GTKSPELL_CFLAGS)
17 AC_SUBST(GTKSPELL_LIBS)
19 diff -u -r gtkspell-2.0.16/gtkspell/gtkspell.c gtkspell-2.0.16-enchant2/gtkspell/gtkspell.c
20 --- gtkspell-2.0.16/gtkspell/gtkspell.c 2009-10-09 21:01:47.000000000 +0200
21 +++ gtkspell-2.0.16-enchant2/gtkspell/gtkspell.c 2018-01-18 12:41:37.146338802 +0100
23 get_word_extents_from_mark(spell->buffer, &start, &end, spell->mark_click);
24 word = gtk_text_buffer_get_text(spell->buffer, &start, &end, FALSE);
26 - enchant_dict_add_to_pwl( spell->speller, word, strlen(word));
27 + enchant_dict_add( spell->speller, word, strlen(word));
29 gtkspell_recheck_all(spell);