GNOME Bugzilla – Bug 562622
Errordomains missing
Last modified: 2015-02-07 16:53:42 UTC
The generated .gir files seem to miss errordomains, they only appear as normal enums. Tested with GIO.
What information do you need from the error domains Jürg?
I don't need a lot of information, mainly the information that it is an errordomain instead of just an enum - I assume we use a different element name for that - and the information how to get the quark, similar to glib:get-type. In the specific case of gio, we should also rename the type from IOErrorEnum to IOError. It's only called GIOErrorEnum in C due to a conflict with the deprecated enum GIOError, which shouldn't be an issue in gobject-introspection.
I fixed this: 2009-01-21 Johan Dahlin <jdahlin@async.com.br> Bug 562622 – Errordomains missing * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * tests/scanner/Makefile.am: * tests/scanner/foo-1.0-expected.gir: * tests/scanner/foo-1.0-expected.tgir: * tests/scanner/foo.c (foo_error_get_type), (foo_error_quark): * tests/scanner/foo.h: Rename-To etc should probably be covered by another bug, closing this one.
I would like we reopen that bug for the reason that what produces the giscanner and the foo-1.0-expected.gir test data are in contradiction with what expects girparser.c. Reference information: - the above commit: http://git.gnome.org/cgit/gobject-introspection/commit/?id=f90b158f0563a23213678c8dabfbccc08aaa5fb5 - the corresponding girepository API: http://git.gnome.org/cgit/gobject-introspection/tree/girepository/girepository.h#n376 - the parsing code for errordomains: http://git.gnome.org/cgit/gobject-introspection/tree/girepository/girparser.c#n1419
Duplicating on a similar bug with more useful discussion about what the API should look like *** This bug has been marked as a duplicate of bug 602516 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]