Quit screenshooter when idle.
authorKristian Høgsberg <krh@redhat.com>
Mon, 24 Nov 2008 16:32:43 +0000 (11:32 -0500)
committerKristian Høgsberg <krh@redhat.com>
Mon, 24 Nov 2008 16:32:43 +0000 (11:32 -0500)
screenshot.c

index 7c69b85..53100c1 100644 (file)
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
                exit(-1);
 
        screenshooter_shoot(s);
-
+       g_idle_add((GSourceFunc) g_main_loop_quit, loop);
        g_main_loop_run(loop);
 
        return 0;