[cheese: 9/13] Use clutter_actor_add_child
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese: 9/13] Use clutter_actor_add_child
- Date: Sat, 20 Apr 2013 21:48:40 +0000 (UTC)
commit 9fc421d4f7c687812d738d0c5349394b8d83332d
Author: David King <amigadave amigadave com>
Date: Sat Apr 20 18:49:00 2013 +0100
Use clutter_actor_add_child
Instead of using the deprecated clutter_container_add_actor, use
clutter_actor_add_child.
libcheese/cheese-widget.c | 2 +-
tests/cheese-test-camera.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-widget.c b/libcheese/cheese-widget.c
index 4d3ae5b..7da5cf4 100644
--- a/libcheese/cheese-widget.c
+++ b/libcheese/cheese-widget.c
@@ -224,7 +224,7 @@ cheese_widget_init (CheeseWidget *widget)
clutter_actor_set_size (priv->texture, 400, 300);
totem_aspect_frame_set_child (TOTEM_ASPECT_FRAME (frame), priv->texture);
- clutter_container_add_actor (CLUTTER_CONTAINER (stage), frame);
+ clutter_actor_add_child (stage, frame);
constraint = clutter_bind_constraint_new (stage, CLUTTER_BIND_SIZE, 0.0);
clutter_actor_add_constraint_with_name (frame, "size", constraint);
diff --git a/tests/cheese-test-camera.c b/tests/cheese-test-camera.c
index d5d2002..92e8dc4 100644
--- a/tests/cheese-test-camera.c
+++ b/tests/cheese-test-camera.c
@@ -59,7 +59,7 @@ main (int argc, char **argv)
texture = clutter_texture_new ();
clutter_actor_set_size (texture, 400, 300);
- clutter_container_add_actor (CLUTTER_CONTAINER (stage), texture);
+ clutter_actor_add_child (stage, texture);
gtk_widget_show (screen);
clutter_actor_show (texture);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]