/usr/share/gtk-doc/html/gtkspell3/gtkspell3-gtkspell.html is in libgtkspell3-3-dev 3.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gtkspell</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GtkSpell Reference Manual">
<link rel="up" href="ch02.html" title="Function Reference">
<link rel="prev" href="ch02.html" title="Function Reference">
<link rel="next" href="object-tree.html" title="Object Hierarchy">
<meta name="generator" content="GTK-Doc V1.19 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="ch02.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GtkSpell Reference Manual</th>
<td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtkspell3-gtkspell.synopsis" class="shortcut">Top</a>
|
<a href="#gtkspell3-gtkspell.description" class="shortcut">Description</a>
|
<a href="#gtkspell3-gtkspell.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#gtkspell3-gtkspell.properties" class="shortcut">Properties</a>
|
<a href="#gtkspell3-gtkspell.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtkspell3-gtkspell"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtkspell3-gtkspell.top_of_page"></a>gtkspell</span></h2>
<p>gtkspell</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtkspell3-gtkspell.synopsis"></a><h2>Synopsis</h2>
<a name="GtkSpellChecker"></a><pre class="synopsis">
#include <gtkspell/gtkspell.h>
struct <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker-struct" title="struct GtkSpellChecker">GtkSpellChecker</a>;
<a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="returnvalue">GtkSpellChecker</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-new" title="gtk_spell_checker_new ()">gtk_spell_checker_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-attach" title="gtk_spell_checker_attach ()">gtk_spell_checker_attach</a> (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-detach" title="gtk_spell_checker_detach ()">gtk_spell_checker_detach</a> (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-set-language" title="gtk_spell_checker_set_language ()">gtk_spell_checker_set_language</a> (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *lang</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-get-language" title="gtk_spell_checker_get_language ()">gtk_spell_checker_get_language</a> (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-get-language-list" title="gtk_spell_checker_get_language_list ()">gtk_spell_checker_get_language_list</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-decode-language-code" title="gtk_spell_checker_decode_language_code ()">gtk_spell_checker_decode_language_code</a>
(<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *lang</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-recheck-all" title="gtk_spell_checker_recheck_all ()">gtk_spell_checker_recheck_all</a> (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);
<a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="returnvalue">GtkSpellChecker</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-get-from-text-view" title="gtk_spell_checker_get_from_text_view ()">gtk_spell_checker_get_from_text_view</a>
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a> *view</code></em>);
<a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-get-suggestions-menu" title="gtk_spell_checker_get_suggestions_menu ()">gtk_spell_checker_get_suggestions_menu</a>
(<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>);
enum <a class="link" href="gtkspell3-gtkspell.html#GtkSpellError" title="enum GtkSpellError">GtkSpellError</a>;
</pre>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
+----GtkSpellChecker
</pre>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker--decode-language-codes" title='The "decode-language-codes" property'>decode-language-codes</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker-language-changed" title='The "language-changed" signal'>language-changed</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
</pre>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkSpellChecker-struct"></a><h3>struct GtkSpellChecker</h3>
<pre class="programlisting">struct GtkSpellChecker;</pre>
<p>
The <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> struct contains only private fields.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-new"></a><h3>gtk_spell_checker_new ()</h3>
<pre class="programlisting"><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="returnvalue">GtkSpellChecker</span></a> * gtk_spell_checker_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create a new <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-attach"></a><h3>gtk_spell_checker_attach ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_spell_checker_attach (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a> *view</code></em>);</pre>
<p>
Attach <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object to <em class="parameter"><code>view</code></em>.
</p>
<p>
Note: Please read the tutorial section of the documentation to make sure
you don't leak references!
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>A <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>The <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a> to attach to.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE on success, FALSE on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-detach"></a><h3>gtk_spell_checker_detach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_spell_checker_detach (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);</pre>
<p>
Detaches this <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> from its <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a>. Use
<a class="link" href="gtkspell3-gtkspell.html#gtk-spell-checker-get-from-text-view" title="gtk_spell_checker_get_from_text_view ()"><code class="function">gtk_spell_checker_get_from_text_view()</code></a> to retrieve a <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> from
a <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a>. If the <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> is not attached to any <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a>,
the function silently exits.
</p>
<p>
Note: if the <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> is owned by the <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a>, you must
take a reference to it to prevent it from being automatically destroyed.
Please read the tutorial section of the documentation!
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>A <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-set-language"></a><h3>gtk_spell_checker_set_language ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_spell_checker_set_language (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *lang</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Set the language on <em class="parameter"><code>spell</code></em> to <em class="parameter"><code>lang</code></em>, possibily returning an error in
<em class="parameter"><code>error</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>The <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lang</code></em> :</span></p></td>
<td>The language to use, as a locale specifier (i.e. "en_US").
If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>, attempt to use the default system locale (LANG). <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FALSE if there was an error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-get-language"></a><h3>gtk_spell_checker_get_language ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_spell_checker_get_language (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);</pre>
<p>
Fetches the current language.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>a <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current language. This string is
owned by the spell object and must not be modified or freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-get-language-list"></a><h3>gtk_spell_checker_get_language_list ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_spell_checker_get_language_list (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Requests the list of available languages from the enchant broker.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of the available languages.
Use g_list_free to free the list after use. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-decode-language-code"></a><h3>gtk_spell_checker_decode_language_code ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gtk_spell_checker_decode_language_code
(<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *lang</code></em>);</pre>
<p>
Translates the language code to a human readable format
(i.e. "en_US" -> "English (United States)").
Note: If the iso-codes package is not available, the unchanged code is
returned.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>lang</code></em> :</span></p></td>
<td>The language locale specifier (i.e. "en_US").</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The translated language specifier. Use g_free to
free the returned string after use. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-recheck-all"></a><h3>gtk_spell_checker_recheck_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gtk_spell_checker_recheck_all (<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>);</pre>
<p>
Recheck the spelling in the entire buffer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>The <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-get-from-text-view"></a><h3>gtk_spell_checker_get_from_text_view ()</h3>
<pre class="programlisting"><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="returnvalue">GtkSpellChecker</span></a> * gtk_spell_checker_get_from_text_view
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a> *view</code></em>);</pre>
<p>
Retrieves the <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object attached to a text view.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gtk3/GtkTextView.html"><span class="type">GtkTextView</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a>
attached to <em class="parameter"><code>view</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-spell-checker-get-suggestions-menu"></a><h3>gtk_spell_checker_get_suggestions_menu ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gtk_spell_checker_get_suggestions_menu
(<em class="parameter"><code><a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Retrieves a submenu of replacement spellings, or NULL if the word at <em class="parameter"><code>iter</code></em> is
not misspelt.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>A <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>Textiter of position in buffer to be corrected if necessary.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a href="/usr/share/gtk-doc/html/gtk3/GtkMenu.html"><span class="type">GtkMenu</span></a> widget, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no need for a menu. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkSpellError"></a><h3>enum GtkSpellError</h3>
<pre class="programlisting">typedef enum {
GTK_SPELL_ERROR_BACKEND
} GtkSpellError;
</pre>
<p>
Error codes used for GtkSpell errors.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><a name="GTK-SPELL-ERROR-BACKEND:CAPS"></a><span class="term"><code class="literal">GTK_SPELL_ERROR_BACKEND</code></span></p></td>
<td>Error code for backend errors
</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GtkSpellChecker--decode-language-codes"></a><h3>The <code class="literal">"decode-language-codes"</code> property</h3>
<pre class="programlisting"> "decode-language-codes" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>Whether to show decoded language codes in the context menu (requires the iso-codes package).</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="gtkspell3-gtkspell.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GtkSpellChecker-language-changed"></a><h3>The <code class="literal">"language-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> *spell,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *lang,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
The ::language-changed signal is emitted when the user selects
a new spelling language from the context menu.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>spell</code></em> :</span></p></td>
<td>the <a class="link" href="gtkspell3-gtkspell.html#GtkSpellChecker"><span class="type">GtkSpellChecker</span></a> object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>lang</code></em> :</span></p></td>
<td>the new language which was selected.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|