move inbuilt_filetypes.icon to a separate struct

there are a lot of duplicated icons in the inbuilt_filetypes struct
its only used at load so deduplicate and look-up by attr

Change-Id: I5eb34e5243d88688984f689e0add08f92d953a6f
This commit is contained in:
William Wilgus 2022-11-21 02:00:36 -05:00
parent 658cc95885
commit 2056878e46
2 changed files with 141 additions and 90 deletions

View file

@ -53,9 +53,9 @@
struct filetype {
char* extension;
int tree_attr;
enum themable_icons icon;
int voiceclip;
};
void tree_get_filetypes(const struct filetype**, int*) INIT_ATTR;
/* init the filetypes structs.