GNOME Bugzilla – Bug 603812
Incorrect member names for enum values
Last modified: 2015-02-07 16:54:17 UTC
Created attachment 149110 [details] Generated gir file In seahorse, libcryptui/cryptui.h there's an enum: /** * CryptUIEncType: * @CRYPTUI_ENCTYPE_NONE: the key is none of the below types * @CRYPTUI_ENCTYPE_SYMMETRIC: the key's type is symmetric * @CRYPTUI_ENCTYPE_PUBLIC: the key's type is public * @CRYPTUI_ENCTYPE_PRIVATE: the key's type is private * @_CRYPTUI_ENCTYPE_MAXVALUE: for internal use only * * Used in key properties to indicate what kind of key it is * * Never ever change a values already present. These values are used * across applications, DBus etc... */ typedef enum { CRYPTUI_ENCTYPE_NONE = 0, CRYPTUI_ENCTYPE_SYMMETRIC = 1, CRYPTUI_ENCTYPE_PUBLIC = 2, CRYPTUI_ENCTYPE_PRIVATE = 3, /* Used internally */ _CRYPTUI_ENCTYPE_MAXVALUE } CryptUIEncType; That gets scanned and placed into the gir file as: <enumeration name="EncType" doc="Used in key properties to indicate what kind of key it is Never ever change a values already present. These values are used across applications, DBus etc..." c:type="CryptUIEncType"> <member name="ryptui_enctype_none" value="0" c:identifier="CRYPTUI_ENCTYPE_NONE"/> <member name="ryptui_enctype_symmetric" value="1" c:identifier="CRYPTUI_ENCTYPE_SYMMETRIC"/> <member name="ryptui_enctype_public" value="2" c:identifier="CRYPTUI_ENCTYPE_PUBLIC"/> <member name="ryptui_enctype_private" value="3" c:identifier="CRYPTUI_ENCTYPE_PRIVATE"/> <member name="cryptui_enctype_maxvalue" value="4" c:identifier="_CRYPTUI_ENCTYPE_MAXVALUE"/> </enumeration> The member names are wrong. The patch for seahorse hasn't been committed yet.
Which version of gobject-introspection? This was recently fixed/changed in git.
Created attachment 149112 [details] header file in question
git master, I built it this morning and just checked and was still up to date.
The problem is the _CRYPTUI_ENCTYPE_MAXVALUE enum. If you remove that it'll work just fine. We don't really support that style in the scanner.
I can remove the underscore since that value doesn't appear in any C files yet. Is it really that non-standard of a construction?
Yes, that kind of construct is not used anywhere inside any GNOME libraries as far as I know.
Changed.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]