GNOME Bugzilla – Bug 667938
wrong gtypes generated for empty flags enums
Last modified: 2012-01-25 02:24:35 UTC
When there's only one defined value of a Flags enum (usually a NONE = 0 entry), the generated gioenumtypes.c file creates the gtype as an enum type instead of as a flags type.
Created attachment 205281 [details] [review] Ensure to generate a flags GType for empty Flags enums When the flags enum only has the default NONE = 0 entry, glib-mkenums creates an enum type for it, not a flags type. Add an annotation to the enum to ensure the correct GType is created. Bug #667938.
Review of attachment 205281 [details] [review]: looks good to me.
Pushed to master.
*** Bug 668522 has been marked as a duplicate of this bug. ***