Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <gdk/gdk.h>
- #include <clutter/clutter.h>
- gboolean
- stage_show (gpointer user_data)
- {
- clutter_actor_show (CLUTTER_ACTOR (user_data));
- return FALSE;
- }
- int main (int argc, char **argv) {
- GdkWindow *gdk_window;
- GMainLoop *loop;
- ClutterActor *stage;
- gdk_init (&argc, &argv);
- clutter_init (&argc, &argv);
- stage = clutter_stage_new ();
- clutter_actor_set_size (stage, 512, 512);
- // clutter_actor_show (stage);
- /* if removing comment-out above, this will be crashed */
- clutter_actor_hide (stage);
- g_timeout_add_seconds (1, stage_show, stage);
- loop = g_main_new (TRUE);
- g_main_run (loop);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement