<p>If we wanted a simpler/less intrusive port, we could just do</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/geanyvc/src/geanyvc.c b/geanyvc/src/geanyvc.c</span>
index a95a991..488f1f2 100644
<span class="pl-md">--- a/geanyvc/src/geanyvc.c</span>
<span class="pl-mi1">+++ b/geanyvc/src/geanyvc.c</span>
<span class="pl-mdr">@@ -39,6 +39,25 @@</span>
#ifdef USE_GTKSPELL
#include <gtkspell/gtkspell.h>
<span class="pl-mi1">+/* forward compatibility with GtkSpell3 */</span>
<span class="pl-mi1">+# if GTK_CHECK_VERSION(3, 0, 0)</span>
<span class="pl-mi1">+# define GtkSpell GtkSpellChecker</span>
<span class="pl-mi1">+# define gtkspell_set_language gtk_spell_checker_set_language</span>
<span class="pl-mi1">+static GtkSpell *gtkspell_new_attach(GtkTextView *view, const gchar *lang, GError **error)</span>
<span class="pl-mi1">+{</span>
<span class="pl-mi1">+ GtkSpellChecker *speller = gtk_spell_checker_new();</span>
<span class="pl-mi1">+</span>
<span class="pl-mi1">+ if (! lang || gtk_spell_checker_set_language(speller, lang, error))</span>
<span class="pl-mi1">+ gtk_spell_checker_attach(speller, view);</span>
<span class="pl-mi1">+ else</span>
<span class="pl-mi1">+ {</span>
<span class="pl-mi1">+ g_object_unref(speller);</span>
<span class="pl-mi1">+ speller = NULL;</span>
<span class="pl-mi1">+ }</span>
<span class="pl-mi1">+</span>
<span class="pl-mi1">+ return speller;</span>
<span class="pl-mi1">+}</span>
<span class="pl-mi1">+# endif</span>
#endif
GeanyData *geany_data;</pre></div>
<p>in the code, and just keep the build system changes from this PR, which are just fine.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/342#issuecomment-183728796">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_NShuqWq-85eaXX6_Q9jHiURtGIks5pj3hugaJpZM4HH9CJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/geany/geany-plugins/pull/342#issuecomment-183728796"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>