--- rxvt-unicode/src/perl/selection-pastebin 2006/01/18 10:39:20 1.7 +++ rxvt-unicode/src/perl/selection-pastebin 2006/01/19 16:22:13 1.10 @@ -43,19 +43,20 @@ my $timer; $timer = urxvt::timer ->new - ->start (urxvt::NOW + 5) + ->after (5) ->cb (sub {undef $timer; undef $ov; }); } sub on_start { my ($self) = @_; + $pastebin_cmd = $self->x_resource ("selection-pastebin.cmd") || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; $pastebin_url = $self->x_resource ("selection-pastebin.url") || "http://www.ta-sa.org/files/txt/%"; - push @urxvt::ext::selection_popup::hook, sub { + push @{ $self->{term}{selection_popup_hook} }, sub { ("pastebin upload" => sub { $self->upload_paste }) };