Use strict everywhere and fix one error that it revealed.
authorAndrew Ruthven <puck@catalyst.net.nz>
Mon, 22 Sep 2008 22:55:03 +0000 (10:55 +1200)
committerAndrew Ruthven <puck@dirk.wgtn.cat-it.co.nz>
Mon, 22 Sep 2008 22:55:03 +0000 (10:55 +1200)
lib/Display/Notifications.pm
lib/Display/Plugins/FSpot.pm

index 06f4744..c2270fd 100644 (file)
@@ -56,7 +56,7 @@ sub add {
   my $effect = Clutter::EffectTemplate->new_for_duration(1000, 'main::smoothstep_inc');
   my $timeline = Clutter::Effect->fade($effect, $block, 255);
       
-  $kernel->delay_add(notifications_expire, $delay);
+  $kernel->delay_add('notifications_expire', $delay);
 
   $timeline->start();
 }
index 8cdfe59..9674845 100644 (file)
@@ -4,6 +4,7 @@ use base ('Display::Plugin');
 use Clutter;
 use POE;
 use POE::Component::EasyDBI;
+use strict;
 
 my $default_f_spot_db = "$ENV{HOME}/.gnome2/f-spot/photos.db";
 my $delay = 10;