ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.57 by root, Sun Jan 8 08:43:11 2006 UTC vs.
Revision 1.58 by root, Sun Jan 8 22:58:13 2006 UTC

534 $proxy 534 $proxy
535 }, 535 },
536 @_, 536 @_,
537 ) and last; 537 ) and last;
538 }; 538 };
539 warn $@ if $@;#d# 539 if ($@) {
540 $TERM->ungrab; # better to lose the grab than the session
541 warn $@;
542 }
540 } 543 }
541 } 544 }
542 545
543 if ($htype == 1) { # DESTROY 546 if ($htype == 1) { # DESTROY
544 # remove hooks if unused 547 # remove hooks if unused
572 } 575 }
573 1 576 1
574 } or die "FATAL: unable to compile method forwarder: $@"; 577 } or die "FATAL: unable to compile method forwarder: $@";
575 578
576 goto &$urxvt::term::proxy::AUTOLOAD; 579 goto &$urxvt::term::proxy::AUTOLOAD;
580}
581
582sub urxvt::term::proxy::DESTROY {
583 # nop
577} 584}
578 585
579# urxvt::destroy_hook 586# urxvt::destroy_hook
580 587
581sub urxvt::destroy_hook::DESTROY { 588sub urxvt::destroy_hook::DESTROY {
1157 1164
1158 my $item; $item = { 1165 my $item; $item = {
1159 type => "button", 1166 type => "button",
1160 text => " $text", 1167 text => " $text",
1161 value => $value, 1168 value => $value,
1162 render => sub { ($item->{value} ? "* " : " ") . $text }, 1169 render => sub { ($_[0]{value} ? "* " : " ") . $text },
1163 activate => sub { $cb->($item->{value} = !$item->{value}); }, 1170 activate => sub { $cb->($_[0]{value} = !$_[0]{value}); },
1164 }; 1171 };
1165 1172
1166 $self->add_item ($item); 1173 $self->add_item ($item);
1167} 1174}
1168 1175
1178} 1185}
1179 1186
1180sub DESTROY { 1187sub DESTROY {
1181 my ($self) = @_; 1188 my ($self) = @_;
1182 1189
1190 delete $self->{term}{_destroy}{$self};
1183 $self->{term}->ungrab; 1191 $self->{term}->ungrab;
1184} 1192}
1185 1193
1186=head2 The C<urxvt::timer> Class 1194=head2 The C<urxvt::timer> Class
1187 1195
1291This variable controls the verbosity level of the perl extension. Higher 1299This variable controls the verbosity level of the perl extension. Higher
1292numbers indicate more verbose output. 1300numbers indicate more verbose output.
1293 1301
1294=over 4 1302=over 4
1295 1303
1296=item =0 - only fatal messages 1304=item == 0 - fatal messages
1297 1305
1298=item =3 - script loading and management 1306=item >= 3 - script loading and management
1299 1307
1300=item =10 - all events received 1308=item >=10 - all events received
1301 1309
1302=back 1310=back
1303 1311
1304=head1 AUTHOR 1312=head1 AUTHOR
1305 1313

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines