[clutter/wip/wayland: 8/45] test-wayland-surface: Install a destroy handler on the stage
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/wayland: 8/45] test-wayland-surface: Install a destroy handler on the stage
- Date: Wed, 22 Feb 2012 18:00:22 +0000 (UTC)
commit 81ec34ec2410ec08e16a0a2b03e29df0db6365f5
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]