forked from enlightenment/efl
edje: correct retrival of file name
When using eina_file_direct_ls, we already know where the file part of a path is, not need to use ecore_file_file_get(). SVN revision: 67307
This commit is contained in:
parent
7f9dc64529
commit
46a8cf1c4c
|
@ -136,12 +136,12 @@ edje_available_modules_get(void)
|
||||||
|
|
||||||
snprintf(tmp, sizeof (tmp), "%s/%s/" EDJE_MODULE_NAME, info->path, MODULE_ARCH
|
snprintf(tmp, sizeof (tmp), "%s/%s/" EDJE_MODULE_NAME, info->path, MODULE_ARCH
|
||||||
#ifdef EDJE_EXTRA_MODULE_NAME
|
#ifdef EDJE_EXTRA_MODULE_NAME
|
||||||
, ecore_file_file_get(info->path)
|
, info->path + info->name_start
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
if (ecore_file_exists(tmp))
|
if (ecore_file_exists(tmp))
|
||||||
result = eina_list_append(result, eina_stringshare_add(ecore_file_file_get(info->path)));
|
result = eina_list_append(result, eina_stringshare_add(info->path + info->name_start));
|
||||||
}
|
}
|
||||||
|
|
||||||
eina_iterator_free(it);
|
eina_iterator_free(it);
|
||||||
|
|
Loading…
Reference in New Issue