Mercurial > geeqie
diff src/typedefs.h @ 448:a73cc0fa14d0
Use explicit names for mouse buttons instead of numbers.
MOUSE_BUTTON_LEFT = 1
MOUSE_BUTTON_MIDDLE = 2
MOUSE_BUTTON_RIGHT = 3
It makes the code easier to read.
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 21:30:36 +0000 |
parents | ddabc4873a3f |
children | 7a69309b91c8 |
line wrap: on
line diff
--- a/src/typedefs.h Sun Apr 20 20:35:26 2008 +0000 +++ b/src/typedefs.h Sun Apr 20 21:30:36 2008 +0000 @@ -14,6 +14,14 @@ #define TYPEDEFS_H typedef enum { + MOUSE_BUTTON_LEFT = 1, + MOUSE_BUTTON_MIDDLE = 2, + MOUSE_BUTTON_RIGHT = 3, + MOUSE_BUTTON_WHEEL_UP = 4, + MOUSE_BUTTON_WHEEL_DOWN = 5 +} MouseButton; + +typedef enum { DIRVIEW_LIST, DIRVIEW_TREE } DirViewType;