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.203 by sf-exg, Fri Dec 2 09:03:43 2011 UTC vs.
Revision 1.205 by root, Tue Jun 5 19:32:29 2012 UTC

1100 while (my ($name, $cb) = each %hook) { 1100 while (my ($name, $cb) = each %hook) {
1101 my $htype = $HOOKTYPE{uc $name}; 1101 my $htype = $HOOKTYPE{uc $name};
1102 defined $htype 1102 defined $htype
1103 or Carp::croak "unsupported hook type '$name'"; 1103 or Carp::croak "unsupported hook type '$name'";
1104 1104
1105 $self->set_should_invoke ($htype, +1) 1105 $self->modify_should_invoke_count ($htype, +1)
1106 unless exists $self->{term}{_hook}[$htype]{$pkg}; 1106 unless exists $self->{term}{_hook}[$htype]{$pkg};
1107 1107
1108 $self->{term}{_hook}[$htype]{$pkg} = $cb; 1108 $self->{term}{_hook}[$htype]{$pkg} = $cb;
1109 } 1109 }
1110} 1110}
1116 for my $name (@hook) { 1116 for my $name (@hook) {
1117 my $htype = $HOOKTYPE{uc $name}; 1117 my $htype = $HOOKTYPE{uc $name};
1118 defined $htype 1118 defined $htype
1119 or Carp::croak "unsupported hook type '$name'"; 1119 or Carp::croak "unsupported hook type '$name'";
1120 1120
1121 $self->set_should_invoke ($htype, -1) 1121 $self->modify_should_invoke_count ($htype, -1)
1122 if delete $self->{term}{_hook}[$htype]{$pkg}; 1122 if delete $self->{term}{_hook}[$htype]{$pkg};
1123 } 1123 }
1124} 1124}
1125 1125
1126our $AUTOLOAD; 1126our $AUTOLOAD;
1629Adds the specified events to the vt event mask. Useful e.g. when you want 1629Adds the specified events to the vt event mask. Useful e.g. when you want
1630to receive pointer events all the times: 1630to receive pointer events all the times:
1631 1631
1632 $term->vt_emask_add (urxvt::PointerMotionMask); 1632 $term->vt_emask_add (urxvt::PointerMotionMask);
1633 1633
1634=item $term->set_urgency ($set)
1635
1636Enable/disable the urgency hint on the toplevel window.
1637
1634=item $term->focus_in 1638=item $term->focus_in
1635 1639
1636=item $term->focus_out 1640=item $term->focus_out
1637 1641
1638=item $term->key_press ($state, $keycode[, $time]) 1642=item $term->key_press ($state, $keycode[, $time])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines