[clutter/fosdem-2012] test-wayland-surface: Install a destroy handler on the stage



commit 2d6aae957caa54d8a1fd5df76512e5f837134704
Author: Neil Roberts <neil linux intel com>
Date:   Mon Jan 9 12:56:30 2012 +0000

    test-wayland-surface: Install a destroy handler on the stage
    
    This just makes it quit the main loop when the stage is destroyed.

 tests/interactive/test-wayland-surface.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/interactive/test-wayland-surface.c b/tests/interactive/test-wayland-surface.c
index 05bc7f6..d2a4bf2 100644
--- a/tests/interactive/test-wayland-surface.c
+++ b/tests/interactive/test-wayland-surface.c
@@ -1101,6 +1101,11 @@ test_wayland_surface_main (int argc, char **argv)
   g_signal_connect_after (compositor.stage, "paint",
                           G_CALLBACK (paint_finished_cb), &compositor);
 
+  g_signal_connect (compositor.stage,
+                    "destroy",
+                    G_CALLBACK (clutter_main_quit),
+                    NULL /* user_data */);
+
   tws_compositor_create_output (&compositor, 0, 0, 800, 600);
 
   if (wl_display_add_global (compositor.wayland_display, &wl_shell_interface,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]