[gnome-keyring] gcr: Proper flags for GcrColumnFlags
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] gcr: Proper flags for GcrColumnFlags
- Date: Fri, 2 Sep 2011 11:48:09 +0000 (UTC)
commit 68c6da75deac176d589fcac7869b5edbd479923a
Author: Stef Walter <stefw collabora co uk>
Date: Fri Sep 2 13:43:13 2011 +0200
gcr: Proper flags for GcrColumnFlags
* Include GCR_COLUMN_NONE
* Use << instead of hex numbers
gcr/gcr-column.c | 1 +
gcr/gcr-column.h | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gcr/gcr-column.c b/gcr/gcr-column.c
index f23c95d..254f55c 100644
--- a/gcr/gcr-column.c
+++ b/gcr/gcr-column.c
@@ -36,6 +36,7 @@
/**
* GcrColumnFlags:
+ * @GCR_COLUMN_NONE: No column flags
* @GCR_COLUMN_HIDDEN: Don't display this column.
* @GCR_COLUMN_SORTABLE: This column is sortable.
*
diff --git a/gcr/gcr-column.h b/gcr/gcr-column.h
index 04de16d..65ee6a6 100644
--- a/gcr/gcr-column.h
+++ b/gcr/gcr-column.h
@@ -29,8 +29,9 @@
G_BEGIN_DECLS
typedef enum {
- GCR_COLUMN_HIDDEN = 0x01,
- GCR_COLUMN_SORTABLE = 0x02,
+ GCR_COLUMN_NONE = 0,
+ GCR_COLUMN_HIDDEN = 1 << 1,
+ GCR_COLUMN_SORTABLE = 1 << 2,
} GcrColumnFlags;
typedef struct _GcrColumn {
@@ -39,7 +40,7 @@ typedef struct _GcrColumn {
GType column_type; /* The resulting property type for this column */
const gchar *label; /* The label for this column, or NULL */
- guint flags; /* Column flags */
+ GcrColumnFlags flags; /* Column flags */
GValueTransform transformer; /* The way to transform to this type or NULL */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]