GTK3 migration, fixes #365