docs: code example for enumeration types

I had to read the GTK+ code recently to have an example.