talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 63f0dc7bc4cb44aa8a7d53f47021ab04baf700a8
parent e6affb13d094ae55d7caaee56eb8d87c6b02817a
Author: wwp <subscript@free.fr>
Date:   Wed,  2 Oct 2019 12:08:20 +0200

Get rid of a hardcoded define when the enum size can be automatically
handled.

Diffstat:
Msrc/mimeview.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mimeview.c b/src/mimeview.c @@ -63,9 +63,10 @@ typedef enum COL_SIZE = 1, COL_NAME = 2, COL_DATA = 3, + N_MIMEVIEW_COLUMNS } MimeViewColumnPos; -#define N_MIMEVIEW_COLS 4 +#define N_MIMEVIEW_COLS (N_MIMEVIEW_COLUMNS) static void mimeview_set_multipart_tree (MimeView *mimeview, MimeInfo *mimeinfo,