From: Andrew Ruthven Date: Fri, 19 Sep 2008 10:07:26 +0000 (+1200) Subject: Hopefully stop the fast flicking of photos. X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8d9bacd6db4e449371d2fa00fd5ee99f10e1da3;p=picture-display.git Hopefully stop the fast flicking of photos. --- diff --git a/lib/Display/Plugins/FSpot.pm b/lib/Display/Plugins/FSpot.pm index f74e419..86ebcc6 100644 --- a/lib/Display/Plugins/FSpot.pm +++ b/lib/Display/Plugins/FSpot.pm @@ -47,7 +47,7 @@ sub display_photo { # $self->{'new'} = $temp; $self->{'last_file'} = $file; - $self->{'kernel'}->delay_set(fspot_display => 30); + $self->{'kernel'}->delay(fspot_display, 30); return 1; } @@ -96,15 +96,11 @@ LIMIT 1 $self->{$age}->set('keep-aspect-ratio' => 1); $self->{$age}->set('sync-size' => 1); $self->{$age}->set_opacity(0); - } - - $self->display(); - for my $age ('new', 'old') { $self->{'stage'}->add($self->{$age}); } - $self->{'kernel'}->delay_set(fspot_display => 30); + $self->display(); } 1;