Use the correct stage creation/destruction API.
ClutterActor *actor;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
actor = clutter_rectangle_new ();
g_assert (!(CLUTTER_ACTOR_IS_MAPPED (actor)));
g_assert (!(CLUTTER_ACTOR_IS_VISIBLE (actor)));
- clutter_actor_destroy (actor);
+ clutter_actor_destroy (stage);
}
void
ClutterActor *actor;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_show (stage);
actor = clutter_rectangle_new ();
g_assert (CLUTTER_ACTOR_IS_MAPPED (actor));
g_assert (CLUTTER_ACTOR_IS_VISIBLE (actor));
- clutter_actor_destroy (actor);
- clutter_actor_hide (stage);
+ clutter_actor_destroy (stage);
}
void
ClutterActor *actor, *group;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_show (stage);
group = clutter_group_new ();
g_assert (!(CLUTTER_ACTOR_IS_MAPPED (actor)));
g_assert (!(CLUTTER_ACTOR_IS_VISIBLE (actor)));
- clutter_actor_destroy (group);
- clutter_actor_hide (stage);
+ clutter_actor_destroy (stage);
}
void
ClutterActor *actor, *group;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_show (stage);
group = clutter_group_new ();
g_assert (CLUTTER_ACTOR_IS_VISIBLE (group));
g_assert (CLUTTER_ACTOR_IS_VISIBLE (actor));
- clutter_actor_destroy (group);
- clutter_actor_hide (stage);
+ clutter_actor_destroy (stage);
}
void
gboolean show_on_set_parent;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
group = clutter_group_new ();
clutter_actor_destroy (actor);
clutter_actor_destroy (group);
+ clutter_actor_destroy (stage);
}
void
ClutterActor *actor;
ClutterActor *clone;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_show (stage);
group = clutter_group_new ();
clutter_actor_destroy (CLUTTER_ACTOR (clone));
clutter_actor_destroy (CLUTTER_ACTOR (group));
-
- clutter_actor_hide (stage);
+ clutter_actor_destroy (stage);
}
void
==,
expected_results[x * 10 + y]);
}
+
+void
+default_stage (TestConformSimpleFixture *fixture,
+ gconstpointer data)
+{
+ ClutterActor *stage, *def_stage;
+
+ stage = clutter_stage_new ();
+ def_stage = clutter_stage_get_default ();
+
+ if (clutter_feature_available (CLUTTER_FEATURE_STAGE_MULTIPLE))
+ g_assert (stage != def_stage);
+ else
+ g_assert (stage == def_stage);
+
+ g_assert (CLUTTER_ACTOR_IS_REALIZED (def_stage));
+}
TestState state;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
state.rect = clutter_rectangle_new ();
clutter_container_add (CLUTTER_CONTAINER (stage), state.rect, NULL);
g_idle_remove_by_data (&state);
- clutter_actor_destroy (state.rect);
+ clutter_actor_destroy (stage);
}
memset (&data, 0, sizeof (data));
- data.stage = clutter_stage_get_default ();
+ data.stage = clutter_stage_new ();
data.default_attributes = default_attributes;
data.run_attributes = build_attribute_set ("fg-color", "0,0,0", NULL);
data.extents_height = 17;
clutter_actor_set_position (data.label, 20, 100);
-
memset (&data1, 0, sizeof (data1));
- data1.stage = clutter_stage_get_default ();
+ data1.stage = data.stage;
data1.default_attributes = default_attributes;
data1.run_attributes = build_attribute_set ("bg-color", "0,65535,0",
"fg-color", "65535,65535,0",
clutter_actor_set_position (data1.label, 20, 200);
data.next = &data1;
-
clutter_actor_show (data.stage);
clutter_threads_add_idle ((GSourceFunc) do_tests, &data);
clutter_main ();
+ clutter_actor_destroy (data.stage);
+
if (g_test_verbose ())
g_print ("\nOverall result: ");
unsigned int paint_handler;
state.frame = 0;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
state.progress = TEST_BEFORE_DRAW_FIRST_FRAME;
state.ct = clutter_cairo_texture_new (BLOCK_SIZE * 2, BLOCK_SIZE);
if (g_test_verbose ())
g_print ("OK\n");
+
+ clutter_actor_destroy (state.stage);
}
gconstpointer data)
{
ClutterTexture *tex = CLUTTER_TEXTURE (clutter_texture_new ());
- ClutterStage *stage = CLUTTER_STAGE (clutter_stage_get_default ());
+ ClutterStage *stage = CLUTTER_STAGE (clutter_stage_new ());
ClutterActor *actor;
clutter_texture_set_cogl_texture (tex, make_texture ());
g_print ("actor @ (10, 10) = %p\n", actor);
g_assert (actor == CLUTTER_ACTOR (tex));
- clutter_actor_destroy (CLUTTER_ACTOR (tex));
+ clutter_actor_destroy (CLUTTER_ACTOR (stage));
if (g_test_verbose ())
g_print ("OK\n");
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_actor_get_size (stage, &stage_width, &stage_height);
state.offscreen = COGL_INVALID_HANDLE;
cogl_handle_unref (state.offscreen_tex);
cogl_handle_unref (state.texture);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *stage;
guint paint_handler;
- stage = clutter_stage_get_default ();
-
/* If shaders aren't supported then we can't run the test */
if (cogl_features_available (COGL_FEATURE_SHADERS_GLSL))
{
+ stage = clutter_stage_new ();
+
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
paint_handler = g_signal_connect_after (stage, "paint",
g_signal_handler_disconnect (stage, paint_handler);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
else if (g_test_verbose ())
g_print ("Skipping\n");
}
-
test_conform_get_gl_functions (&gl_functions);
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
typedef struct _TestState
{
+ ClutterActor *stage;
guint frame;
CoglHandle texture;
} TestState;
static gboolean
-validate_part (int xnum, int ynum, const ClutterColor *color)
+validate_part (ClutterActor *stage,
+ int xnum,
+ int ynum,
+ const ClutterColor *color)
{
guchar *pixels, *p;
- ClutterActor *stage = clutter_stage_get_default ();
gboolean ret = TRUE;
/* Read the appropriate part but skip out a few pixels around the
{
/* Validate that all four corners of the texture are drawn in the
right color */
- g_assert (validate_part (0, 0, corner_colors + 0));
- g_assert (validate_part (1, 0, corner_colors + 1));
- g_assert (validate_part (0, 1, corner_colors + 2));
- g_assert (validate_part (1, 1, corner_colors + 3));
+ g_assert (validate_part (state->stage, 0, 0, corner_colors + 0));
+ g_assert (validate_part (state->stage, 1, 0, corner_colors + 1));
+ g_assert (validate_part (state->stage, 0, 1, corner_colors + 2));
+ g_assert (validate_part (state->stage, 1, 1, corner_colors + 3));
/* Comment this out if you want visual feedback of what this test
* paints.
state.texture = make_texture ();
- stage = clutter_stage_get_default ();
+ state.stage = stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
cogl_handle_unref (state.texture);
+ clutter_actor_destroy (state.stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
guint idle_source;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
/* We force continuous redrawing of the stage, since we need to skip
g_source_remove (idle_source);
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-
unsigned int paint_handler;
state.frame = 0;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
/* We force continuous redrawing of the stage, since we need to skip
g_signal_handler_disconnect (state.stage, paint_handler);
g_source_remove (idle_source);
+ clutter_actor_destroy (state.stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
guint idle_source;
guint paint_handler;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
g_source_remove (idle_source);
g_signal_handler_disconnect (stage, paint_handler);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
state.frame = 0;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
create_map_tile (&tiles[TILE_MAP]);
#if 0
cogl_handle_unref (state.tiles[i].texture);
}
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (state.stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (state.stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-
cogl_material_set_layer_combine (state.passthrough_material, 0,
"RGBA = REPLACE (TEXTURE)", NULL);
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *stage;
guint paint_handler;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
g_signal_handler_disconnect (stage, paint_handler);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
guint idle_source;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
/* We force continuous redrawing of the stage, since we need to skip
g_source_remove (idle_source);
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-
state.frame = 0;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
state.tex = create_source ();
clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
cogl_handle_unref (state.tex);
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (state.stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (state.stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *stage;
guint paint_handler;
- stage = clutter_stage_get_default ();
-
/* Check whether GL supports the rectangle extension. If not we'll
just assume the test passes */
if (cogl_features_available (COGL_FEATURE_TEXTURE_3D))
{
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
paint_handler = g_signal_connect_after (stage, "paint",
g_signal_handler_disconnect (stage, paint_handler);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
else if (g_test_verbose ())
g_print ("Skipping\n");
}
-
/* We create a stage even though we don't usually need it so that if
the draw-and-read texture fallback is needed then it will have
something to draw to */
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
paint_handler = g_signal_connect_after (stage, "paint",
G_CALLBACK (paint_cb), NULL);
g_signal_handler_disconnect (stage, paint_handler);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
-
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
group = clutter_group_new ();
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
gconstpointer data)
{
#ifdef CLUTTER_WINDOWING_X11
+ if (clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
+ {
+ TestState state;
+ guint idle_handler;
+ guint paint_handler;
- TestState state;
- guint idle_handler;
- guint paint_handler;
-
- state.frame_count = 0;
- state.stage = clutter_stage_get_default ();
+ state.frame_count = 0;
+ state.stage = clutter_stage_new ();
- state.display = clutter_x11_get_default_display ();
+ state.display = clutter_x11_get_default_display ();
- state.pixmap = create_pixmap (&state);
- state.tfp = cogl_texture_pixmap_x11_new (state.pixmap, TRUE);
+ state.pixmap = create_pixmap (&state);
+ state.tfp = cogl_texture_pixmap_x11_new (state.pixmap, TRUE);
- clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
+ clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
- paint_handler = g_signal_connect_after (state.stage, "paint",
- G_CALLBACK (on_paint), &state);
+ paint_handler = g_signal_connect_after (state.stage, "paint",
+ G_CALLBACK (on_paint), &state);
- idle_handler = g_idle_add (queue_redraw, state.stage);
+ idle_handler = g_idle_add (queue_redraw, state.stage);
- clutter_actor_show_all (state.stage);
+ clutter_actor_show_all (state.stage);
- clutter_main ();
+ clutter_main ();
- g_signal_handler_disconnect (state.stage, paint_handler);
+ g_signal_handler_disconnect (state.stage, paint_handler);
- g_source_remove (idle_handler);
+ g_source_remove (idle_handler);
- XFreePixmap (state.display, state.pixmap);
+ XFreePixmap (state.display, state.pixmap);
- if (g_test_verbose ())
- g_print ("OK\n");
-
-#else /* CLUTTER_WINDOWING_X11 */
+ clutter_actor_destroy (state.stage);
+ if (g_test_verbose ())
+ g_print ("OK\n");
+ }
+ else
+#endif
if (g_test_verbose ())
- g_print ("Skipping\n");
-
-#endif /* CLUTTER_WINDOWING_X11 */
+ g_print ("Skipping\n");
}
-
guint idle_source;
guint paint_handler;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
test_conform_get_gl_functions (&gl_functions);
g_source_remove (idle_source);
g_signal_handler_disconnect (state.stage, paint_handler);
+ clutter_actor_destroy (state.stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
0x00, 0xff, 0x00, 0xff
};
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_clr);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_clr);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
ClutterActor *group;
guint idle_source;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_clr);
clutter_actor_get_geometry (stage, &state.stage_geom);
g_source_remove (idle_source);
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
-
guint idle_source;
ClutterActor *stage;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
/* We force continuous redrawing of the stage, since we need to skip
g_source_remove (idle_source);
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-
guint idle_source;
guint paint_handler;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
g_source_remove (idle_source);
g_signal_handler_disconnect (state.stage, paint_handler);
+ clutter_actor_destroy (state.stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
TEST_CONFORM_SIMPLE ("/invariants", test_show_on_set_parent);
TEST_CONFORM_SIMPLE ("/invariants", test_clone_no_map);
TEST_CONFORM_SIMPLE ("/invariants", test_contains);
+ TEST_CONFORM_SIMPLE ("/invariants", default_stage);
TEST_CONFORM_SIMPLE ("/opacity", test_label_opacity);
TEST_CONFORM_SIMPLE ("/opacity", test_rectangle_opacity);
{
Data data;
- data.stage = clutter_stage_get_default ();
+ data.stage = clutter_stage_new ();
data.parent_container = clutter_group_new ();
clutter_main ();
+ clutter_actor_destroy (data.stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
ClutterColor label_color = { 255, 0, 0, 128 };
ClutterColor color_check = { 0, };
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
label = clutter_text_new_with_text ("Sans 18px", "Label, 50% opacity");
clutter_text_set_color (CLUTTER_TEXT (label), &label_color);
clutter_actor_set_opacity (label, 128);
g_assert (clutter_actor_get_paint_opacity (label) == 128);
- clutter_actor_destroy (label);
+ clutter_actor_destroy (stage);
}
void
ClutterColor rect_color = { 0, 0, 255, 255 };
ClutterColor color_check = { 0, };
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
rect = clutter_rectangle_new_with_color (&rect_color);
clutter_actor_set_size (rect, 128, 128);
g_print ("rect 100%%.get_paint_opacity()\n");
g_assert (clutter_actor_get_paint_opacity (rect) == 255);
- clutter_actor_destroy (rect);
+ clutter_actor_destroy (stage);
}
void
ClutterColor rect_color = { 0, 0, 255, 255 };
ClutterColor color_check = { 0, };
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
group1 = clutter_group_new ();
clutter_actor_set_opacity (group1, 128);
g_print ("rect 100%%.get_paint_opacity()\n");
g_assert (clutter_actor_get_paint_opacity (rect) == 128);
- clutter_actor_destroy (rect);
- clutter_actor_destroy (group2);
- clutter_actor_destroy (group1);
+ clutter_actor_destroy (stage);
}
state.pass = TRUE;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
state.actor_width = STAGE_WIDTH / ACTORS_X;
state.actor_height = STAGE_HEIGHT / ACTORS_Y;
clutter_main ();
-
if (g_test_verbose ())
g_print ("end result: %s\n", state.pass ? "pass" : "FAIL");
g_assert (state.pass);
+
+ clutter_actor_destroy (state.stage);
}
ClutterTimeline *timeline_5;
GSList *timelines;
- /* this is necessary to make the master clock spin */
+ /* FIXME - this is necessary to make the master clock spin */
(void) clutter_stage_get_default ();
timeline_1 = clutter_timeline_new (100);
ClutterActor *stage;
ClutterActor *rect;
- stage = clutter_stage_get_default ();
+ stage = clutter_stage_new ();
rect = make_actor (foo_old_shader_effect_get_type ());
clutter_container_add_actor (CLUTTER_CONTAINER (stage), rect);
clutter_main ();
+ clutter_actor_destroy (stage);
+
if (g_test_verbose ())
g_print ("OK\n");
}
memset (&data, 0, sizeof (data));
- data.stage = clutter_stage_get_default ();
+ data.stage = clutter_stage_new ();
data.label = clutter_text_new_with_text (TEST_FONT, "");
clutter_main ();
+ clutter_actor_destroy (data.stage);
+
if (g_test_verbose ())
g_print ("\nOverall result: ");
gconstpointer data)
{
TestState state;
- guint idle_source;
- gulong paint_handler;
ClutterActor *actor;
int ypos = 0;
state.frame = 0;
- state.stage = clutter_stage_get_default ();
+ state.stage = clutter_stage_new ();
clutter_stage_set_color (CLUTTER_STAGE (state.stage), &stage_color);
/* We force continuous redrawing of the stage, since we need to skip
* the first few frames, and we wont be doing anything else that
* will trigger redrawing. */
- idle_source = g_idle_add (queue_redraw, state.stage);
-
- paint_handler = g_signal_connect_after (state.stage, "paint",
- G_CALLBACK (on_paint), &state);
+ g_idle_add (queue_redraw, state.stage);
+ g_signal_connect_after (state.stage, "paint", G_CALLBACK (on_paint), &state);
clutter_actor_show_all (state.stage);
clutter_main ();
- g_signal_handler_disconnect (state.stage, paint_handler);
-
- g_source_remove (idle_source);
-
- /* Remove all of the actors from the stage */
- clutter_container_foreach (CLUTTER_CONTAINER (state.stage),
- (ClutterCallback) clutter_actor_destroy,
- NULL);
+ clutter_actor_destroy (state.stage);
if (g_test_verbose ())
g_print ("OK\n");
}
-