collection: Have gobject-introspection and glib-mkenums recognize flags

Recognize flags correctly by putting << in their enum values. This
is pretty ugly and I wish there was an annotation.
This commit is contained in:
Stef Walter 2013-06-21 10:34:56 +02:00
parent 1758194f26
commit 143f00ceef

View File

@ -28,12 +28,12 @@
G_BEGIN_DECLS
typedef enum {
SECRET_COLLECTION_NONE = 0,
SECRET_COLLECTION_NONE = 0 << 0,
SECRET_COLLECTION_LOAD_ITEMS = 1 << 1,
} SecretCollectionFlags;
typedef enum {
SECRET_COLLECTION_CREATE_NONE = 0,
SECRET_COLLECTION_CREATE_NONE = 0 << 0,
} SecretCollectionCreateFlags;
#define SECRET_TYPE_COLLECTION (secret_collection_get_type ())