Project to understand glib main loop event