The Gtk+ port should generate the corresponding GTypes for the enums (using glib-mkenums or some other means). Not only this makes the API more Gtkish but also helps (dynamic) language bindings to determine those types.
Created attachment 18867 [details] patch without qmake support The attached patch uses glib-mkenums to generate a webkittypebuiltins.h/cpp which contain GEnum types for enums. Only autotools support atm though as I don't know much on how to do this in qmake.
Created attachment 19919 [details] Updated patch Updated the patch so it applies to current ToT.
Comment on attachment 19919 [details] Updated patch Clearing review flag as this patch needs updating
The patch at #19171 is more updated. Marking as duplicate. *** This bug has been marked as a duplicate of 19171 ***