Fix glib:error-quark scanning for unregistered enum types
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 22 Dec 2009 16:10:33 +0000 (11:10 -0500)
committerColin Walters <walters@verbum.org>
Fri, 12 Feb 2010 21:12:27 +0000 (16:12 -0500)
commit965ff4c6583fd1bab80858ecde419bfc20ad540b
tree630423ecf568dc3b09f468cc36f0743d37bae9d1
parentefc88ed30e212cc0cca9fbb57b245e4a02a3d136
Fix glib:error-quark scanning for unregistered enum types

The enumeration type for an error might not be introspected
and registered with GObject (this is, in particular, true for
the errors in GLib itself). So, as a fallback search, through
all enum types in the module.

Add a special case for the aberrant GIOErrorEnum and a warning
if resolution completely fails.

https://bugzilla.gnome.org/show_bug.cgi?id=602512
giscanner/girwriter.py
giscanner/glibtransformer.py
giscanner/transformer.py