[libsecret] collection: Have gobject-introspection and glib-mkenums recognize flags
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] collection: Have gobject-introspection and glib-mkenums recognize flags
- Date: Fri, 21 Jun 2013 13:13:49 +0000 (UTC)
commit 143f00ceef694a7edf57962e6e62ac43046a83e7
Author: Stef Walter <stefw gnome org>
Date: Fri Jun 21 10:34:56 2013 +0200
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.
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 ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]