]> git.etc.gen.nz Git - picture-display.git/commitdiff
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 f74e4190a71b83610f58c7bd52cddb2a7c0dcb2c..86ebcc64f805e9eed30f0b1a6f56b2bdc6a0428e 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;