Port from GApplication to GtkApplication