Missing static quark function method for enums with glib:error-domain.
Submitted by Tomasz Miąsko
Created attachment 367958 Pair error quark functions with error enums.
For example GOptionError has error domain "g-option-context-error-quark", but it doesn't have "quark" as associated static member function.
When generating bindings for static language it would be more convenient to actually have name of function returning quark for given enum, rather than merely stringified version of it.
Current behaviour is a result of the fact that MainTransformer _pair_quarks_with_enums method (which fills out the error_domain) uses slightly different matching algorithm than one used in _pair_static_method (which moves functions to associated type as static method).
It would be nice to use exactly the same approach in both cases, i.e., whenever error domain is filled, the quark function is paired as well. See attached patch for one possible solution.
Patch 367958, "Pair error quark functions with error enums.":