From a12d7458110c57e183916255d701b1e0d7c070e1 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Tue, 24 May 2011 16:24:09 -0500 Subject: Clean up enums Use glib-enums to generate GTypes for enums, and modify enum definitions so that they will be marked as bitflags where appropriate. This helps with introspection and allows functions that take flags to be prototyped as such rather than being marked as taking a gint. --- atspi/atspi-types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atspi/atspi-types.h') diff --git a/atspi/atspi-types.h b/atspi/atspi-types.h index e56f93f0..4e8dc1ac 100644 --- a/atspi/atspi-types.h +++ b/atspi/atspi-types.h @@ -143,8 +143,8 @@ typedef struct _AtspiKeySet **/ typedef enum { ATSPI_KEYLISTENER_NOSYNC = 0, - ATSPI_KEYLISTENER_SYNCHRONOUS = 1, - ATSPI_KEYLISTENER_CANCONSUME = 2, - ATSPI_KEYLISTENER_ALL_WINDOWS = 4 + ATSPI_KEYLISTENER_SYNCHRONOUS = 1 << 0, + ATSPI_KEYLISTENER_CANCONSUME = 1 << 1, + ATSPI_KEYLISTENER_ALL_WINDOWS = 1 << 2 } AtspiKeyListenerSyncType; #endif /* _ATSPI_TYPES_H_ */ -- cgit v1.2.1