From a271e167443aedca2ed9c28b51fc6de33692dadb Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 22 Jul 2011 14:49:06 +0200 Subject: Reduced usage of preprocessor macros --- thumbs.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'thumbs.h') diff --git a/thumbs.h b/thumbs.h index a81287b..347c146 100644 --- a/thumbs.h +++ b/thumbs.h @@ -21,15 +21,9 @@ #include +#include "types.h" #include "window.h" -typedef enum { - TNS_LEFT = 0, - TNS_RIGHT, - TNS_UP, - TNS_DOWN -} tnsdir_t; - typedef struct { Imlib_Image *im; const char *filename; @@ -62,8 +56,8 @@ int tns_load(tns_t*, int, const char*, unsigned char); void tns_render(tns_t*, win_t*); void tns_highlight(tns_t*, win_t*, int, Bool); -int tns_move_selection(tns_t*, win_t*, tnsdir_t); -int tns_scroll(tns_t*, tnsdir_t); +int tns_move_selection(tns_t*, win_t*, direction_t); +int tns_scroll(tns_t*, direction_t); int tns_translate(tns_t*, int, int); -- cgit v1.2.3