summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/filetypes.c2
-rw-r--r--apps/filetypes.h2
-rw-r--r--apps/gui/icon.h5
3 files changed, 4 insertions, 5 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 481c0df..779337e 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -159,7 +159,7 @@ void tree_get_filetypes(const struct filetype** types, int* count)
#define ROCK_EXTENSION "rock"
struct file_type {
- int icon; /* the icon which shall be used for it, NOICON if unknown */
+ enum themable_icons icon; /* the icon which shall be used for it, NOICON if unknown */
unsigned char attr; /* FILE_ATTR_MASK >> 8 */
char* plugin; /* Which plugin to use, NULL if unknown, or builtin */
char* extension; /* NULL for none */
diff --git a/apps/filetypes.h b/apps/filetypes.h
index a957f16..0b50b45 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -51,8 +51,8 @@
struct filetype {
char* extension;
int tree_attr;
- int icon;
int voiceclip;
+ enum themable_icons icon;
};
void tree_get_filetypes(const struct filetype**, int*);
diff --git a/apps/gui/icon.h b/apps/gui/icon.h
index 9a58076..e79defe 100644
--- a/apps/gui/icon.h
+++ b/apps/gui/icon.h
@@ -30,12 +30,11 @@ typedef const unsigned char * ICON;
typedef long ICON;
#endif
-#define NOICON Icon_NOICON
-#define FORCE_INBUILT_ICON 0x80000000
/* Don't #ifdef icon values, or we wont be able to use the same
bmp for every target. */
enum themable_icons {
- Icon_NOICON = -1, /* Dont put this in a .bmp */
+ NOICON = -1,
+ Icon_NOICON = NOICON, /* Dont put this in a .bmp */
Icon_Audio,
Icon_Folder,
Icon_Playlist,