Hopefully stop the fast flicking of photos.
authorAndrew Ruthven <andrew@etc.gen.nz>
Fri, 19 Sep 2008 10:07:26 +0000 (22:07 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Fri, 19 Sep 2008 10:07:26 +0000 (22:07 +1200)
lib/Display/Plugins/FSpot.pm

index f74e419..86ebcc6 100644 (file)
@@ -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;