diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-10-30 14:23:38 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-10-30 14:23:38 +0000 |
commit | 835d033e7b0c37883c05ab0c66086d089ababd26 (patch) | |
tree | 8a305d608aec7b06768ef46b9116c111ae38ae1d /amiga/tree.c | |
parent | 22c31c63492ed051faf7b313158b8466d4812ce1 (diff) | |
download | netsurf-835d033e7b0c37883c05ab0c66086d089ababd26.tar.gz netsurf-835d033e7b0c37883c05ab0c66086d089ababd26.tar.bz2 |
Amiga icon loader. Treeviews will now use the user's icons for content types.
svn path=/trunk/netsurf/; revision=10925
Diffstat (limited to 'amiga/tree.c')
-rwxr-xr-x | amiga/tree.c | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index a72de8d1f..a7f86035a 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -52,6 +52,7 @@ #include "amiga/sslcert.h" #include "amiga/drag.h" /* drag icon stuff */ #include "amiga/theme.h" /* pointers */ +#include "amiga/filetype.h" #include "utils/utils.h" #define AMI_TREE_MENU_ITEMS 19 @@ -174,41 +175,8 @@ void ami_tree_get_window_dimensions(int *width, int *height, void *data) */ void tree_icon_name_from_content_type(char *buffer, content_type type) { - // TODO: design/acquire icons - switch (type) { - case CONTENT_HTML: - case CONTENT_TEXTPLAIN: - case CONTENT_CSS: -#if defined(WITH_MNG) || defined(WITH_PNG) - case CONTENT_PNG: -#endif -#ifdef WITH_MNG - case CONTENT_JNG: - case CONTENT_MNG: -#endif -#ifdef WITH_JPEG - case CONTENT_JPEG: -#endif -#ifdef WITH_GIF - case CONTENT_GIF: -#endif -#ifdef WITH_BMP - case CONTENT_BMP: - case CONTENT_ICO: -#endif -#ifdef WITH_NSSPRITE - case CONTENT_SPRITE: -#endif -#ifdef WITH_NS_SVG - case CONTENT_SVG: -#endif -#ifdef WITH_WEBP - case CONTENT_WEBP: -#endif - default: - ami_get_theme_filename(buffer,"theme_list_content",true); - break; - } + const char *ftype = ami_content_type_to_file_type(type); + sprintf(buffer, "def_%s.info", ftype); } /** |