summaryrefslogtreecommitdiff
path: root/src/widget/mf-ug-genlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/mf-ug-genlist.c')
-rw-r--r--src/widget/mf-ug-genlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widget/mf-ug-genlist.c b/src/widget/mf-ug-genlist.c
index fa5195f..92ec41b 100644
--- a/src/widget/mf-ug-genlist.c
+++ b/src/widget/mf-ug-genlist.c
@@ -372,13 +372,14 @@ static void __mf_ug_genlist_get_thumbnail(void *data)
//const char *dir_create_icon_path = UG_ICON_FOLDER_CREATED;
char *icon_path = NULL;
int error_code = MYFILE_ERR_NONE;
+ int thumbnail_type = 0;
if (itemData->ug_pThumbPath == NULL) {
if (ecore_file_is_dir(itemData->ug_pItemName->str)) {
itemData->ug_pThumbPath = strdup(dir_icon_path);
itemData->ug_bRealThumbFlag = true;
} else {
- icon_path = mf_ug_file_attr_get_file_icon(itemData->ug_pItemName->str, &error_code);
+ thumbnail_type = mf_ug_file_attr_get_file_icon(itemData->ug_pItemName->str, &error_code, &icon_path);
if (icon_path) {
itemData->ug_pThumbPath = strdup(icon_path);
itemData->ug_bRealThumbFlag = true;