498 |
/* ---------------------- copy icons --------------------- */ |
/* ---------------------- copy icons --------------------- */ |
499 |
for(i=0;cache_type_icons[i][0];i++) { |
for(i=0;cache_type_icons[i][0];i++) { |
500 |
char *src = malloc(strlen(ICONPATH)+strlen(cache_type_icons[i])+ |
char *src = malloc(strlen(ICONPATH)+strlen(cache_type_icons[i])+ |
501 |
strlen("cache_type_.gif")+1); |
strlen("cache_type_.png")+1); |
502 |
sprintf(src, ICONPATH "cache_type_%s.gif", cache_type_icons[i]); |
sprintf(src, ICONPATH "cache_type_%s.png", cache_type_icons[i]); |
503 |
if(!g_file_test(src, G_FILE_TEST_EXISTS)) |
if(!g_file_test(src, G_FILE_TEST_EXISTS)) |
504 |
sprintf(src, "./icons/cache_type_%s.gif", cache_type_icons[i]); |
sprintf(src, "./icons/cache_type_%s.png", cache_type_icons[i]); |
505 |
|
|
506 |
if(g_file_test(src, G_FILE_TEST_EXISTS)) { |
if(g_file_test(src, G_FILE_TEST_EXISTS)) { |
507 |
char *dest = malloc(strlen(appdata->mmpoi_path)+ |
char *dest = malloc(strlen(appdata->mmpoi_path)+ |