Gtk2::Spell - Bindings for GtkSpell with Gtk2


Gtk2-Spell documentation  | view source Contained in the Gtk2-Spell distribution.

Index


NAME

Top

Gtk2::Spell - Bindings for GtkSpell with Gtk2

SYNOPSIS

Top

  use Gtk2;
  use Gtk2::Spell;

  $txtview = Gtk2::TextView->new;
  $spell = Gtk2::Spell->new_attache($txtview);
  $spell2 = Gtk2::Spell->get_from_text_view($txtview);
  # $spell2 will be the same object as $spell
  $spell->set_language(SOME_LANG);
  $spell->recheck_all;
  $spell->detach;

ABSTRACT

Top

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

DESCRIPTION

Top

Perl bindings to GtkSpell, used in concert with Gtk2::TextView. Provides mis-spelled word highlighting in red and offers a right click pop-up menu with suggested corrections.

FUNCTIONS

Top

$spell = Gtk2::Spell->new(GTK2_TEXT_VIEW)
$spell = Gtk2::Spell->new_attach(GTK2_TEXT_VIEW)

Creates and returns a new Gtk2::Spell object attached to GTK2_TEXT_VIEW.

$spell->set_language(LANG_STR)

Sets the language which the underlying spell-checker will use. According to the GtkSpell API reference this 'appears to be a locale specifier.'

$spell->recheck_all

Rechecks the spelling of the entire text view buffer.

Gtk2::Spell->get_from_text_view(GTK2_TEXT_VIEW)

Returns the Gtk2::Spell object attached to the given Gtk2::TextBuffer or undef if there isn't one attached.

$spell->detach

Detaches the Gtk2::Spell from it's associated text view.

SEE ALSO

Top

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

AUTHOR

Top

rwmcfa1 <rwmcfa1@neces.com>

COPYRIGHT AND LICENSE

Top


Gtk2-Spell documentation  | view source Contained in the Gtk2-Spell distribution.