Use glib-mkenums

It's time to automate enum type code generation, since more enum types
will follow soon.