1Spell(3)              User Contributed Perl Documentation             Spell(3)
2
3
4

NAME

6       Gtk2::Spell - Bindings for GtkSpell with Gtk2
7

SYNOPSIS

9         use Gtk2;
10         use Gtk2::Spell;
11
12         $txtview = Gtk2::TextView->new;
13         $spell = Gtk2::Spell->new_attache($txtview);
14         $spell2 = Gtk2::Spell->get_from_text_view($txtview);
15         # $spell2 will be the same object as $spell
16         $spell->set_language(SOME_LANG);
17         $spell->recheck_all;
18         $spell->detach;
19

ABSTRACT

21         Perl bindings to GtkSpell, used in concert with Gtk2::TextView.
22

DESCRIPTION

24       Perl bindings to GtkSpell, used in concert with Gtk2::TextView. Pro‐
25       vides mis-spelled word highlighting in red and offers a right click
26       pop-up menu with suggested corrections.
27

FUNCTIONS

29       $spell = Gtk2::Spell->new(GTK2_TEXT_VIEW)
30       $spell = Gtk2::Spell->new_attach(GTK2_TEXT_VIEW)
31           Creates and returns a new Gtk2::Spell object attached to
32           GTK2_TEXT_VIEW.
33
34       $spell->set_language(LANG_STR)
35           Sets the language which the underlying spell-checker will use.
36           According to the GtkSpell API reference this 'appears to be a
37           locale specifier.'
38
39       $spell->recheck_all
40           Rechecks the spelling of the entire text view buffer.
41
42       Gtk2::Spell->get_from_text_view(GTK2_TEXT_VIEW)
43           Returns the Gtk2::Spell object attached to the given
44           Gtk2::TextBuffer or undef if there isn't one attached.
45
46       $spell->detach
47           Detaches the Gtk2::Spell from it's associated text view.
48

SEE ALSO

50       perl(1), Glib(1), Gtk2(1).
51

AUTHOR

53       rwmcfa1 <rwmcfa1@neces.com>
54
56       Copyright 2003 by rwmcfa1
57
58       Copyright 2003 by the gtk2-perl team.
59
60       This library is free software; you can redistribute it and/or modify it
61       under the terms of the GNU Library General Public License as published
62       by the Free Software Foundation; either version 2.1 of the License, or
63       (at your option) any later version.
64
65       This library is distributed in the hope that it will be useful, but
66       WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
67       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
68       General Public License for more details.
69
70       You should have received a copy of the GNU Library General Public
71       License along with this library; if not, write to the Free Software
72       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307
73       USA.
74
75
76
77perl v5.8.8                       2003-09-21                          Spell(3)
Impressum