3 @@ -84,7 +84,7 @@ GDL_REQUIRED=3.6.0
7 -GTKSPELL_OPTIONAL=2.99.99
8 +GTKSPELL_OPTIONAL=3.0.0
9 JSON_GLIB_OPTIONAL=0.12.0
12 @@ -174,14 +174,14 @@ dnl -------------------------------------------------------------------
13 dnl Check for gtkspell >= 3.0 and use it if found
14 dnl -------------------------------------------------------------------
16 -AC_ARG_WITH(gtkspell3,
17 +AC_ARG_WITH(gtkspell,
18 AS_HELP_STRING([--with-gtkspell],[Build with spell support]),,
21 if test x"$with_gtkspell" != "xno"
23 PKG_CHECK_MODULES([GTKSPELL], [
24 - gtkspell-3.0 >= $GTKSPELL_OPTIONAL
25 + gtkspell3-3.0 >= $GTKSPELL_OPTIONAL
26 ], have_gtkspell=yes, have_gtkspell=no)
28 if test x"$have_gtkspell" = "xyes"
29 @@ -339,7 +339,7 @@ if [ test x"$have_gtkspell" = "xyes" ]; then
30 echo "Building spell support: ................................YES"
32 echo "Building spell support: ................................NO"
33 - echo " Requires gtkspell >= $GTKSPELL_OPTIONAL"
34 + echo " Requires gtkspell3 >= $GTKSPELL_OPTIONAL"
40 @@ -65,7 +65,7 @@ struct _GtrViewPrivate
45 + GtkSpellChecker *spell;
49 @@ -75,11 +75,10 @@ gtr_attach_gtkspell (GtrView * view)
52 gchar *errortext = NULL;
53 - view->priv->spell = NULL;
56 - gtkspell_new_attach (GTK_TEXT_VIEW (view), NULL, &error);
57 - if (view->priv->spell == NULL)
58 + view->priv->spell = gtk_spell_checker_new ();
59 + gtk_spell_checker_set_language (view->priv->spell, NULL, &error);
62 g_warning (_("gtkspell error: %s\n"), error->message);
64 @@ -90,6 +89,11 @@ gtr_attach_gtkspell (GtrView * view)
70 + gtk_spell_checker_attach (view->priv->spell,
71 + GTK_TEXT_VIEW (view));
76 @@ -263,7 +267,7 @@ gtr_view_enable_spellcheck (GtrView * view, gboolean enable)
78 if (!view->priv->spell)
80 - gtkspell_detach (view->priv->spell);
81 + gtk_spell_checker_detach (view->priv->spell);