<p>In <a href="https://github.com/geany/geany-plugins/pull/342#discussion_r52831670">geanyvc/src/geanyvc.c</a>:</p>
<pre style='color:#555'>> @@ -1586,17 +1591,25 @@ vccommit_activated(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gpointer
>    gtk_paned_set_position(GTK_PANED(vpaned2), height * 50 / 100);
>  
>  #ifdef USE_GTKSPELL
> -  speller = gtkspell_new_attach(GTK_TEXT_VIEW(messageView), NULL, &spellcheck_error);
> +    #if GTK_CHECK_VERSION (3, 0, 0)
> +        speller = gtk_spell_checker_new ();
> +        gtk_spell_checker_attach (speller, GTK_TEXT_VIEW (messageView));
> +    #else
> +        speller = gtkspell_new_attach(GTK_TEXT_VIEW(messageView), NULL, &spellcheck_error);
> +    #endif
</pre>
<p>…though here it might be better to do the contrary and add a compat function for GTK3</p>

<div class="highlight highlight-source-c"><pre><span class="pl-k">static</span> GtkSpellChecker *<span class="pl-en">gtkspell_new_attach</span>(GtkTextView *view, <span class="pl-k">const</span> gchar *lang, GError **error)
{
    GtkSpellChecker *speller = <span class="pl-c1">gtk_spell_checker_new</span> ();
    <span class="pl-c1">gtk_spell_checker_attach</span> (speller, view);
    <span class="pl-k">return</span> speller;
}</pre></div>

<p>next to the other compat macros so there is a single gtkspell compat layer in one single location?</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/files#r52831670">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwKiO4dtnbyFMo0xHFmWUMzRl8f4ks5pj26wgaJpZM4HH9CJ.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/files#r52831670"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>