ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.90 by root, Mon Jun 5 22:07:42 2006 UTC vs.
Revision 1.92 by root, Wed Jun 7 23:30:25 2006 UTC

25 25
26use Carp (); 26use Carp ();
27use AnyEvent (); 27use AnyEvent ();
28use BerkeleyDB; 28use BerkeleyDB;
29use Pod::POM (); 29use Pod::POM ();
30use Scalar::Util ();
30use Storable (); # finally 31use Storable (); # finally
31 32
32package CFClient::PodToPango; 33package CFClient::PodToPango;
33 34
34use base Pod::POM::View::Text; 35use base Pod::POM::View::Text;
51} 52}
52 53
53sub view_item { 54sub view_item {
54 ("\t" x ($indent / 4)) 55 ("\t" x ($indent / 4))
55 . $_[1]->title->present ($_[0]) 56 . $_[1]->title->present ($_[0])
56 . "\n" 57 . "\n\n"
57 . $_[1]->content->present ($_[0]) 58 . $_[1]->content->present ($_[0])
58} 59}
59 60
60sub view_verbatim { 61sub view_verbatim {
61 (join "", 62 (join "",
298 299
299} 300}
300 301
301sub update_widgets { 302sub update_widgets {
302 my ($self) = @_; 303 my ($self) = @_;
304
305 # necessary to avoid cyclic references
306 Scalar::Util::weaken $self;
303 307
304 my $button_cb = sub { 308 my $button_cb = sub {
305 my (undef, $ev, $x, $y) = @_; 309 my (undef, $ev, $x, $y) = @_;
306 310
307 my $targ = $::CONN->{player}{tag}; 311 my $targ = $::CONN->{player}{tag};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines