Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Bindings for other languages: GtkSpell Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GtkSpell Reference Manual">
<link rel="up" href="chapter-tutorial.html" title="GtkSpell Tutorial">
<link rel="prev" href="tutorial-building.html" title="Building a program using GtkSpell">
<link rel="next" href="ch02.html" title="Function Reference">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="chapter-tutorial.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="tutorial-building.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="sect1">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="tutorial-bindings"></a>Bindings for other languages</h2></div></div></div>
The package also optionally offers bindings for the following languages
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>
      <span class="guilabel">Python</span> — via GObject-introspection typelibs.
      To use them, it is sufficient to import the corresponding module as follows
      </p>
<pre class="programlisting">
      from gi.repository import GtkSpell
      </pre>
<p>
    </p>
</li>
<li class="listitem">
<p>
      <span class="guilabel">Vala</span> — via GObject-introspection generated VAPIs.
      To compile a GTK+3 Vala application which uses GtkSpell, you need to add
      <code class="literal">--pkg gtkspell3-3.0</code> to the <code class="literal">valac</code>
      compiler flags, i.e.
      </p>
<pre class="programlisting">
      valac myprog.vala --pkg gtkspell3-3.0 --pkg gtk+-3.0
      </pre>
<p>
      For GTK+2 applications, you would write
      </p>
<pre class="programlisting">
      valac myprog.vala --pkg gtkspell3-2.0 --pkg gtk+-2.0
      </pre>
<p>
    </p>
</li>
</ul></div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>