Implement glib.IdleAdd and add example.