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.5 by root, Sun Jan 8 01:16:10 2006 UTC vs.
Revision 1.9 by root, Thu Feb 2 00:18:51 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;
14 17
15 $popup->add_title ("Options"); 18 $popup->add_title ("Options");
16 $popup->add_separator; 19 $popup->add_separator;
17 20
18 my %unsafe = map +($_ => 1), 21 my %unsafe = map +($_ => 1),
19 qw(borderLess console iconic loginShell reverseVideo 22 qw(borderLess console iconic loginShell reverseVideo
20 scrollBar scrollBar_floating scrollBar_right 23 scrollBar scrollBar_floating scrollBar_right
21 secondaryScreen transparent utmpInhibit meta8); 24 secondaryScreen transparent utmpInhibit meta8
25 override_redirect);
22 26
23 for my $name (sort keys %urxvt::OPTION) { 27 for my $name (sort keys %urxvt::OPTION) {
24 next if $unsafe{$name}; 28 next if $unsafe{$name};
25 29
26 my $optval = $urxvt::OPTION{$name}; 30 my $optval = $urxvt::OPTION{$name};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines