tests: Use accessor methods for :use-alpha

Instead of using g_object_set().
This commit is contained in:
Emmanuele Bassi 2009-12-09 17:17:33 +00:00
parent 1208e47198
commit 34913378fb

View File

@ -214,10 +214,8 @@ test_paint_wrapper_main (int argc, char *argv[])
if (use_alpha != 255) if (use_alpha != 255)
{ {
g_object_set (G_OBJECT (stage), clutter_stage_set_use_alpha (CLUTTER_STAGE (stage), TRUE);
"use-alpha", TRUE, clutter_actor_set_opacity (stage, use_alpha);
"opacity", use_alpha,
NULL);
} }
clutter_stage_set_title (CLUTTER_STAGE (stage), "Paint Test"); clutter_stage_set_title (CLUTTER_STAGE (stage), "Paint Test");