![]() |
![]() |
![]() |
GtkSpell Manual | |
---|---|---|---|---|
Top | Description |
#include <gtkspell/gtkspell.h> GtkSpell; GtkSpell * gtkspell_new_attach (GtkTextView *view
,const gchar *lang
,GError **error
); gboolean gtkspell_set_language (GtkSpell *spell
,const gchar *lang
,GError **error
); void gtkspell_recheck_all (GtkSpell *spell
); GtkSpell * gtkspell_get_from_text_view (GtkTextView *view
); void gtkspell_detach (GtkSpell *spell
); #define GTKSPELL_ERROR enum GtkSpellError;
GtkSpell * gtkspell_new_attach (GtkTextView *view
,const gchar *lang
,GError **error
);
Create a new GtkSpell object attached to view
with language lang
.
|
The GtkTextView to attach to. |
|
The language to use, in a form pspell understands (it appears to be a locale specifier?). |
|
Return location for error. |
Returns : |
a new GtkSpell object, or NULL on error. |
gboolean gtkspell_set_language (GtkSpell *spell
,const gchar *lang
,GError **error
);
Set the language on spell
to lang
, possibily returning an error in
error
.
|
The GtkSpell object. |
|
The language to use, in a form enchant understands (it appears to be a locale specifier?). |
|
Return location for error. |
Returns : |
FALSE if there was an error. |
void gtkspell_recheck_all (GtkSpell *spell
);
Recheck the spelling in the entire buffer.
|
The GtkSpell object. |
GtkSpell * gtkspell_get_from_text_view (GtkTextView *view
);
Retrieves the GtkSpell object attached to a text view.
|
A GtkTextView. |
Returns : |
the GtkSpell object, or NULL if there is no GtkSpell
attached to view . |
void gtkspell_detach (GtkSpell *spell
);
Detaches this GtkSpell from its text view. Use
gtkspell_get_from_text_view()
to retrieve a GtkSpell from a
GtkTextView.
|
A GtkSpell. |