summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-01-31 16:45:48 +0000
committerLionel Landwerlin <llandwerlin@gmail.com>2013-03-18 16:24:19 +0000
commit9e4ca9594d72592ce370fef7c4365d7a52f32e1b (patch)
treec001fc2502a165de4350281ae60a9077f578ad8c /examples
parent9594b928f0d0428c5a8f2b5261af541913e4be84 (diff)
downloadclutter-gst-9e4ca9594d72592ce370fef7c4365d7a52f32e1b.tar.gz
examples: remove usage of deprecated APIs
Diffstat (limited to 'examples')
-rw-r--r--examples/camera-player.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/examples/camera-player.c b/examples/camera-player.c
index cc764e7..1b816a7 100644
--- a/examples/camera-player.c
+++ b/examples/camera-player.c
@@ -53,14 +53,6 @@ static GOptionEntry options[] =
};
static void
-reset_animation (ClutterAnimation *animation,
- CameraApp *app)
-{
- if (app->camera_actor)
- clutter_actor_set_rotation (app->camera_actor, CLUTTER_Y_AXIS, 0.0, 0, 0, 0);
-}
-
-static void
update_gamma (CameraApp *app)
{
gdouble min, max, cur;
@@ -405,8 +397,8 @@ main (int argc, char *argv[])
return EXIT_FAILURE;
}
- stage = clutter_stage_get_default ();
- clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
+ stage = clutter_stage_new ();
+ clutter_actor_set_background_color (stage, &stage_color);
clutter_actor_set_size (stage, 768, 576);
clutter_stage_set_minimum_size (CLUTTER_STAGE (stage), 640, 480);
if (opt_fullscreen)
@@ -458,9 +450,7 @@ main (int argc, char *argv[])
G_CALLBACK (size_change), app);
/* Add control UI to stage */
- clutter_container_add (CLUTTER_CONTAINER (stage),
- app->camera_actor,
- NULL);
+ clutter_actor_add_child (stage, app->camera_actor);
clutter_stage_hide_cursor (CLUTTER_STAGE (stage));