Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <gdk/gdk.h>
  2. #include <clutter/clutter.h>
  3.  
  4. gboolean
  5. stage_show (gpointer user_data)
  6. {
  7. clutter_actor_show (CLUTTER_ACTOR (user_data));
  8.  
  9. return FALSE;
  10. }
  11.  
  12. int main (int argc, char **argv) {
  13. GdkWindow *gdk_window;
  14. GMainLoop *loop;
  15.  
  16. ClutterActor *stage;
  17.  
  18. gdk_init (&argc, &argv);
  19. clutter_init (&argc, &argv);
  20.  
  21. stage = clutter_stage_new ();
  22. clutter_actor_set_size (stage, 512, 512);
  23.  
  24. // clutter_actor_show (stage);
  25. /* if removing comment-out above, this will be crashed */
  26.  
  27. clutter_actor_hide (stage);
  28.  
  29. g_timeout_add_seconds (1, stage_show, stage);
  30.  
  31. loop = g_main_new (TRUE);
  32. g_main_run (loop);
  33.  
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement