Subversion Repositories Kolibri OS

Rev

Rev 4069 | Rev 4846 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4069 Rev 4225
Line 1... Line 1...
1
char *ext[]={
1
char *ext[]={
2
"..",   17,
2
"..",   17,
3
"",16,
3
"",16, "",16,
4
"txt", 1, "doc", 1, "rtf", 1, "odt", 1, "log", 1, "docx",1,
4
"txt", 1, "doc", 1, "rtf", 1, "odt", 1, "log", 1, "docx",1,
5
"htm", 2, "html",2, "mht", 2,
5
"htm", 2, "html",2, "mht", 2,
6
"ini", 3, "js",  3, "conf",3, "inf", 3,
6
"ini", 3, "js",  3, "conf",3, "inf", 3,
7
"xlt", 4, "xls", 4, "ods", 4, "xlsx",4,
7
"xlt", 4, "xls", 4, "ods", 4, "xlsx",4,
8
"cmd", 5, "bat", 5, "py",  5, "sh",  5, "ksh", 5, "com", 5,
8
"cmd", 5, "bat", 5, "py",  5, "sh",  5, "ksh", 5, "com", 5,
Line 28... Line 28...
28
0,0};
28
0,0};
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
 
30
 
31
#include "imgs\icons.txt"
31
#include "imgs\icons.txt"
-
 
32
 
-
 
33
void Put_icon(dword extension, xx, yy, fairing_color, icon_n)
32
 
34
{
-
 
35
	int i;
33
void Put_icon(dword extension, xx, yy, fairing_color, default_icon)
36
 
-
 
37
	if (extension) for (i=0; ext[i]!=0; i+=2;)
-
 
38
	{
-
 
39
		if (strcmpi(extension, ext[i])==0)
-
 
40
		{
-
 
41
			icon_n = ext[i+1];
Line 34... Line 42...
34
{ 
42
			break;
35
	int icon_n=default_icon, i;
43
		}
36
	for (i=0; ext[i]!=0; i+=2;)	if (!strcmp(extension, ext[i]))	{ icon_n = ext[i+1]; break;	}
44
	}
37
 
45