mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 10:38:52 +00:00
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:
parent
1758194f26
commit
143f00ceef
@ -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 ())
|
||||
|
Loading…
Reference in New Issue
Block a user