]> git.etc.gen.nz Git - picture-display.git/commitdiff
Make the keypress event actually exit.
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 20 Sep 2008 10:22:56 +0000 (22:22 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 20 Sep 2008 10:22:56 +0000 (22:22 +1200)
picture.pl

index a51ba80295fd7bbf800e7275bca3b8fd2511fa9b..a8a783bb16b6f187f5a169474724c8290a67973b 100755 (executable)
@@ -31,7 +31,7 @@ sub start {
 
   my $stage = Clutter::Stage->get_default();
   $stage->set_color(Clutter::Color->parse('Black'));
-  $stage->signal_connect('key-press-event' => sub { Clutter->main_quit() });
+  $stage->signal_connect('key-press-event' => sub { exit; });
 
   if ($full_screen) {
     $stage->fullscreen;