* fix deprecations
* port to Gtk.Application
Gtk.main() and Gtk.main_quit() are dropped in gtk4 in favor of
subclassing Gtk.Application.
This commit also moves argument handling from a separate thread to
GtkApplication.do_startup().
* fix deprecations in settings dialog