Document GLib mainloop usage