generator: enum fix
gtk: update enums and flags; add test