Port to GApplication