diff options
author | Stef Walter <stefw@gnome.org> | 2013-06-21 10:34:56 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-06-21 15:11:14 +0200 |
commit | 143f00ceef694a7edf57962e6e62ac43046a83e7 (patch) | |
tree | 71729036400b7771bf9d64db3fcff956ce7956d0 /libsecret | |
parent | 1758194f26a41f660bf1504731053a37fd422315 (diff) | |
download | libsecret-143f00ceef694a7edf57962e6e62ac43046a83e7.tar.gz |
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.
Diffstat (limited to 'libsecret')
-rw-r--r-- | libsecret/secret-collection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsecret/secret-collection.h b/libsecret/secret-collection.h index f4476d3..55530f6 100644 --- a/libsecret/secret-collection.h +++ b/libsecret/secret-collection.h @@ -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 ()) |