8d65f4e
Remove Gdk thread initialization, introduce new helper functions and make exception handler be called by Gtk only once