ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/option-popup
(Generate patch)

Comparing rxvt-unicode/src/perl/option-popup (file contents):
Revision 1.4 by root, Sun Jan 8 00:48:14 2006 UTC vs.
Revision 1.8 by root, Fri Jan 20 10:27:08 2006 UTC

1#! perl 1#! perl
2 2
3sub on_start { 3sub on_start {
4 my ($self) = @_; 4 my ($self) = @_;
5 5
6 $self->grab_button (3, urxvt::ControlMask); 6 $self->grab_button (2, urxvt::ControlMask);
7
8 ()
7} 9}
8 10
9sub on_button_press { 11sub on_button_press {
10 my ($self, $event) = @_; 12 my ($self, $event) = @_;
11 13
12 if ($event->{button} == 3 && $event->{state} & urxvt::ControlMask) { 14 if ($event->{button} == 2 && $event->{state} & urxvt::ControlMask) {
13 my $popup = $self->popup ($event); 15 my $popup = $self->popup ($event)
16 or return 1;
17
18 $popup->add_title ("Options");
19 $popup->add_separator;
14 20
15 my %unsafe = map +($_ => 1), 21 my %unsafe = map +($_ => 1),
16 qw(borderLess console iconic loginShell reverseVideo 22 qw(borderLess console iconic loginShell reverseVideo
17 scrollBar scrollBar_floating scrollBar_right 23 scrollBar scrollBar_floating scrollBar_right
18 secondaryScreen transparent utmpInhibit meta8); 24 secondaryScreen transparent utmpInhibit meta8);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines