diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2008-04-11 15:41:44 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2008-04-11 15:41:44 +0000 |
commit | 8fdd9efa03506eb876c6102dac134e8293432f74 (patch) | |
tree | 7d6aa5968b2d586b70f0dcb39fdfe98616baad3f /examples | |
parent | 817b6783c196c4758372b17dbae182697f30d048 (diff) | |
download | clutter-gtk-8fdd9efa03506eb876c6102dac134e8293432f74.tar.gz |
2008-04-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-gtk/gtk-clutter-embed.c:
(clutter_container_iface_init): Make GtkClutterEmbed implement
ClutterContainer, and proxy all virtual functions to the
embedded Stage.
* examples/gtk-clutter-test.c: (main): Add the group straight
to the GtkClutterEmbed widget to test the Container interface
implementation.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gtk-clutter-test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/gtk-clutter-test.c b/examples/gtk-clutter-test.c index 7df3fb5..59e606c 100644 --- a/examples/gtk-clutter-test.c +++ b/examples/gtk-clutter-test.c @@ -165,7 +165,7 @@ main (int argc, char *argv[]) #endif /* create a new group to hold multiple actors in a group */ - oh->group = CLUTTER_GROUP (clutter_group_new()); + oh->group = CLUTTER_GROUP (clutter_group_new ()); for (i = 0; i < NHANDS; i++) { @@ -175,7 +175,7 @@ main (int argc, char *argv[]) if (i == 0) oh->hand[i] = clutter_texture_new_from_pixbuf (pixbuf); else - oh->hand[i] = clutter_clone_texture_new (CLUTTER_TEXTURE(oh->hand[0])); + oh->hand[i] = clutter_clone_texture_new (CLUTTER_TEXTURE (oh->hand[0])); #else ClutterColor colour = { 255, 0, 0, 255 }; @@ -196,7 +196,8 @@ main (int argc, char *argv[]) } /* Add the group to the stage */ - clutter_group_add (CLUTTER_GROUP (stage), CLUTTER_ACTOR(oh->group)); + clutter_container_add_actor (CLUTTER_CONTAINER (clutter), + CLUTTER_ACTOR (oh->group)); g_signal_connect (stage, "button-press-event", G_CALLBACK (input_cb), |