ctxpopup - display image if it's found in the default image path.

This commit is contained in:
ChunEon Park 2014-03-16 13:21:09 +09:00
parent 12b3582505
commit a25fccbd9b
1 changed files with 8 additions and 0 deletions

View File

@ -494,6 +494,14 @@ image_preview_show(edit_data *ed, char *cur, Evas_Coord x, Evas_Coord y)
break;
}
//2. Find in the default fault.
if (!found)
{
snprintf(fullpath, sizeof(fullpath), "%s/images/%s",
elm_app_data_dir_get(), filename);
if (ecore_file_exists(fullpath)) found = EINA_TRUE;
}
Eina_Bool succeed;
//Create Ctxpopup with the image pathes.