Top | ![]() |
![]() |
![]() |
![]() |
GtkSourceBuffer * | buffer | Read / Write / Construct Only |
GspellChecker * | spell-checker | Read / Write / Construct Only |
The GspellInlineCheckerGtv is an inline spell checker for the
GtkTextView widget. Misspelled words are highlighted with a
PANGO_UNDERLINE_ERROR
, usually a red wavy underline. Right-clicking a
misspelled word pops up a context menu of suggested replacements. The context
menu also contains an “Ignore All” item to add the misspelled word to the
session dictionary. And an “Add” item to add the word to the personal
dictionary.
The spell is checked only on the visible regions of the attached GtkTextView's.
GspellInlineCheckerGtv * gspell_inline_checker_gtv_new (GtkSourceBuffer *buffer
,GspellChecker *checker
);
void gspell_inline_checker_gtv_attach_view (GspellInlineCheckerGtv *spell
,GtkTextView *view
);
Enables the inline spell checker for view
. view
must have the same buffer as
the “buffer” property.
void gspell_inline_checker_gtv_detach_view (GspellInlineCheckerGtv *spell
,GtkTextView *view
);
Disables the inline spell checker for view
.
“buffer”
property“buffer” GtkSourceBuffer *
The GtkSourceBuffer. If a same buffer is used for several views, the misspelled words are visible in all views, because GtkTextTag's are added to the buffer.
Flags: Read / Write / Construct Only
“spell-checker”
property“spell-checker” GspellChecker *
The GspellChecker to use.
Flags: Read / Write / Construct Only