From 34913378fb7aa84874bfda63648e9e0e02e40d8c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 9 Dec 2009 17:17:33 +0000 Subject: [PATCH] tests: Use accessor methods for :use-alpha Instead of using g_object_set(). --- tests/interactive/test-paint-wrapper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/interactive/test-paint-wrapper.c b/tests/interactive/test-paint-wrapper.c index 46e01daa0..3a654e4f5 100644 --- a/tests/interactive/test-paint-wrapper.c +++ b/tests/interactive/test-paint-wrapper.c @@ -214,10 +214,8 @@ test_paint_wrapper_main (int argc, char *argv[]) if (use_alpha != 255) { - g_object_set (G_OBJECT (stage), - "use-alpha", TRUE, - "opacity", use_alpha, - NULL); + clutter_stage_set_use_alpha (CLUTTER_STAGE (stage), TRUE); + clutter_actor_set_opacity (stage, use_alpha); } clutter_stage_set_title (CLUTTER_STAGE (stage), "Paint Test");