scanner: complete the enum-to-error-quark fix
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 18 Jun 2012 17:10:50 +0000 (19:10 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 18 Jun 2012 21:07:50 +0000 (23:07 +0200)
commit64f3832893080f8faf476fdf730c51a52beb5dfa
treedb7cdbb992bfc63b222a813d5020bd488be5d684
parent981f0111c39725cf9b25c50d5b130b14f47dd8dd
scanner: complete the enum-to-error-quark fix

Turns out that the problem was not only in the wrong matching
to GType enums, but also that the non-GType heuristics used
to_underscores instead of to_underscores_noprefix, turning DBusError
into D_Bus_Error instead of DBus_Error.
Complete with various tests.

https://bugzilla.gnome.org/show_bug.cgi?id=669350
giscanner/maintransformer.py
giscanner/utils.py
tests/scanner/Regress-1.0-expected.gir
tests/scanner/regress.c
tests/scanner/regress.h