diff options
author | Bert <ber.t@gmx.com> | 2011-07-22 14:49:06 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-07-22 14:49:06 +0200 |
commit | a271e167443aedca2ed9c28b51fc6de33692dadb (patch) | |
tree | 01d2e58d2aa579de2abf8e609612721eb4a7b7dd /thumbs.h | |
parent | 5f780fc3e77aef1f1b87fdd6662a7caee6efbc3b (diff) |
Reduced usage of preprocessor macros
Diffstat (limited to 'thumbs.h')
-rw-r--r-- | thumbs.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -21,15 +21,9 @@ #include <Imlib2.h> +#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); |