diff options
author | Neil Roberts <neil@openedhand.com> | 2008-04-01 16:01:16 +0000 |
---|---|---|
committer | Neil Roberts <neil@openedhand.com> | 2008-04-01 16:01:16 +0000 |
commit | 29900a94dd4d903107ef630010d8580901d47cd9 (patch) | |
tree | ddaa00b25ec13ddd6fb2800eca289c7ad8468879 /examples | |
parent | 038efffe94aaeefc889cb823bb3eaff2fa15e491 (diff) | |
download | clutter-gtk-29900a94dd4d903107ef630010d8580901d47cd9.tar.gz |
2008-04-01 Neil Roberts <neil@o-hand.com>
* examples/gtk-clutter-test.c (main): Moved the
clutter_actor_show_all call to after the parent widget is
shown. Otherwise all of the actors get unrealized when
clutter_x11_set_stage_foreign is called and nothing is displayed.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gtk-clutter-test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/gtk-clutter-test.c b/examples/gtk-clutter-test.c index 173d4e9..ecd05ad 100644 --- a/examples/gtk-clutter-test.c +++ b/examples/gtk-clutter-test.c @@ -198,9 +198,6 @@ main (int argc, char *argv[]) /* Add the group to the stage */ clutter_group_add (CLUTTER_GROUP (stage), CLUTTER_ACTOR(oh->group)); - /* Show our group, widget show will show the stage */ - clutter_actor_show_all (CLUTTER_ACTOR (oh->group)); - g_signal_connect (stage, "button-press-event", G_CALLBACK (input_cb), oh); @@ -210,6 +207,12 @@ main (int argc, char *argv[]) gtk_widget_show_all (window); + /* Only show the actors after parent show otherwise it will just be + * unrealized when the clutter foreign window is set. widget_show + * will call show on the stage. + */ + clutter_actor_show_all (CLUTTER_ACTOR (oh->group)); + /* Create a timeline to manage animation */ timeline = clutter_timeline_new (360, 60); /* num frames, fps */ g_object_set(timeline, "loop", TRUE, NULL); /* have it loop */ |