Skip to content

Commit

Permalink
Port to enchant-2
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jun 29, 2018
1 parent f7b9b8c commit c29e0bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -74,13 +74,13 @@ LT_INIT

dnl ********************************* Modules *********************************
if test x$gtk3 = xyes; then
AC_SUBST([GTKSPELL3_MODULES], ['glib-2.0 gtk+-3.0 enchant'])
AC_SUBST([GTKSPELL3_MODULES], ['glib-2.0 gtk+-3.0 enchant-2'])
PKG_CHECK_MODULES(GTK_SPELL3, [$GTKSPELL3_MODULES])
AC_SUBST(SPEC_ENABLE_GTK3, 1)
fi

if test x$gtk2 = xyes; then
AC_SUBST([GTKSPELL2_MODULES], ['glib-2.0 gtk+-2.0 enchant'])
AC_SUBST([GTKSPELL2_MODULES], ['glib-2.0 gtk+-2.0 enchant-2'])
PKG_CHECK_MODULES(GTK_SPELL2, [$GTKSPELL2_MODULES])
AC_SUBST(SPEC_ENABLE_GTK2, 1)
fi
Expand Down
4 changes: 2 additions & 2 deletions gtkspell/gtkspell.c
Expand Up @@ -353,7 +353,7 @@ add_to_dictionary (GtkWidget *menuitem, GtkSpellChecker *spell)
get_word_extents_from_mark (spell->priv->buffer, &start, &end, spell->priv->mark_click);
word = gtk_text_buffer_get_text (spell->priv->buffer, &start, &end, FALSE);

enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
enchant_dict_add (spell->priv->speller, word, strlen (word));

gtk_spell_checker_recheck_all (spell);

Expand Down Expand Up @@ -1246,7 +1246,7 @@ gtk_spell_checker_recheck_all (GtkSpellChecker *spell)
void
gtk_spell_checker_add_to_dictionary (GtkSpellChecker *spell, const gchar *word)
{
enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
enchant_dict_add (spell->priv->speller, word, strlen (word));
gtk_spell_checker_recheck_all (spell);
}

Expand Down
2 changes: 1 addition & 1 deletion gtkspell3.spec.in
Expand Up @@ -14,7 +14,7 @@ Source: %{name}-%{version}.tar.xz

Requires: iso-codes

BuildRequires: enchant-devel
BuildRequires: enchant2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: libtool
Expand Down

0 comments on commit c29e0bd

Please sign in to comment.