Port to GtkApplication