OCaml 4.13.1 rebuild, fixes FS#72998
[arch-packages.git] / gtkspell / trunk / enchant-2.diff
blob9ce07814458f0ff161e175b047c03f849c5cc1aa
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
4 @@ -12,12 +12,12 @@
5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
6 AC_CONFIG_HEADERS([config.h])
8 -SPELLER_LIB=-lenchant
9 +SPELLER_LIB=-lenchant-2
11 AC_SUBST(SPELLER_LIB)
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
22 @@ -277,7 +277,7 @@
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);