From 7ada74abcdab74ee8d87f4405dea596ccdc86e73 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Tue, 7 Jun 2016 21:08:08 +0200 Subject: [PATCH] ecore_cocoa: move the default cursor definition out of the enum This makes the code more explicit and less awkward. --- src/lib/ecore_cocoa/Ecore_Cocoa.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h index aae6645..a94785c 100644 --- a/src/lib/ecore_cocoa/Ecore_Cocoa.h +++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h @@ -109,11 +109,16 @@ typedef enum ECORE_COCOA_CURSOR_RESIZE_UP_DOWN, /**< Resize up down cursor */ ECORE_COCOA_CURSOR_IBEAM_VERTICAL, /**< IBeam vertical cursor */ - __ECORE_COCOA_CURSOR_LAST, /**< Sentinel. DO NOT USE */ + __ECORE_COCOA_CURSOR_LAST /**< Sentinel. DO NOT USE */ +} Ecore_Cocoa_Cursor; - ECORE_COCOA_CURSOR_DEFAULT = ECORE_COCOA_CURSOR_ARROW /**< Default Cocoa cursor */ -} Ecore_Cocoa_Cursor; +/** + * @def ECORE_COCOA_CURSOR_DEFAULT + * Defines the default Cocoa cursor, to be used when nothing + * is specified or as a fallback. + */ +#define ECORE_COCOA_CURSOR_DEFAULT ECORE_COCOA_CURSOR_ARROW /** Event triggered when a Cocoa window receives focus */ -- 2.7.4