Ensure to generate a flags GType for empty Flags enums
authorChristian Persch <chpe@gnome.org>
Sat, 14 Jan 2012 23:34:56 +0000 (00:34 +0100)
committerChristian Persch <chpe@gnome.org>
Sun, 15 Jan 2012 12:03:16 +0000 (13:03 +0100)
commit87dc86240835313f0cfe503b2d68a09301ad6240
tree9e8e9b33c7bb582dd6330fea6f946cebdc9db3f7
parentb717ef86ade12781b95464f4de26c1c1ec2f2df2
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.
gio/gioenums.h