Gtk2-Ex-ErrorTextDialog

 view release on metacpan or  search on metacpan

devel/AddOn-FollowAppend.pm  view on Meta::CPAN

=item C<< $follow = Gtk2::Ex::TextView::FollowAppend->new ($textview) >>

Create and return a FollowAppend object which makes C<$textview> follow
output appended to its TextBuffer.

The FollowAppend works with whatever TextBuffer, if any, is set in
C<$textview> at a given time.  It doesn't need a textbuf set initially, and
any textbuf can be changed or unset later.

C<$follow> only keeps a weak reference to C<$textview> so the mere
FollowAppend feature doesn't keep C<$textview> alive if nobody else cares if
it lives or dies.  On that basis it's safe to hold C<$follow> in the hash of
C<$textview> itself,

    $textview->{'follow'} = Gtk2::Ex::TextView::FollowAppend->new($textview);

If the C<$follow> object is destroyed it removes its setups from the
C<$textview>, so be sure to save C<$follow> somewhere.

=back



( run in 0.749 second using v1.01-cache-2.11-cpan-39bf76dae61 )