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

Comparing rxvt-unicode/src/perl/selection-pastebin (file contents):
Revision 1.7 by root, Wed Jan 18 10:39:20 2006 UTC vs.
Revision 1.10 by root, Thu Jan 19 16:22:13 2006 UTC

41 $ov->set (0, 0, $msg); 41 $ov->set (0, 0, $msg);
42 42
43 my $timer; $timer = 43 my $timer; $timer =
44 urxvt::timer 44 urxvt::timer
45 ->new 45 ->new
46 ->start (urxvt::NOW + 5) 46 ->after (5)
47 ->cb (sub {undef $timer; undef $ov; }); 47 ->cb (sub {undef $timer; undef $ov; });
48} 48}
49 49
50sub on_start { 50sub on_start {
51 my ($self) = @_; 51 my ($self) = @_;
52
52 $pastebin_cmd = $self->x_resource ("selection-pastebin.cmd") 53 $pastebin_cmd = $self->x_resource ("selection-pastebin.cmd")
53 || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; 54 || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/";
54 55
55 $pastebin_url = $self->x_resource ("selection-pastebin.url") 56 $pastebin_url = $self->x_resource ("selection-pastebin.url")
56 || "http://www.ta-sa.org/files/txt/%"; 57 || "http://www.ta-sa.org/files/txt/%";
57 58
58 push @urxvt::ext::selection_popup::hook, sub { 59 push @{ $self->{term}{selection_popup_hook} }, sub {
59 ("pastebin upload" => sub { $self->upload_paste }) 60 ("pastebin upload" => sub { $self->upload_paste })
60 }; 61 };
61 62
62 () 63 ()
63} 64}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines