forked from enlightenment/efl
Fix ef_read_dir() (ecore_file_ls() returns filenames without path).
SVN revision: 35565
This commit is contained in:
parent
ddfdbe237e
commit
8d6938ec31
|
@ -460,7 +460,7 @@ ef_cb_efreet_icon_match(void)
|
||||||
|
|
||||||
if (!path)
|
if (!path)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 1
|
||||||
if (ecore_hash_get(icon_hash, icons[i]))
|
if (ecore_hash_get(icon_hash, icons[i]))
|
||||||
{
|
{
|
||||||
printf("NOT FOUND %s\n", icons[i]);
|
printf("NOT FOUND %s\n", icons[i]);
|
||||||
|
@ -469,6 +469,10 @@ ef_cb_efreet_icon_match(void)
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (!ecore_hash_get(icon_hash, icons[i]))
|
||||||
|
{
|
||||||
|
printf("Found icon not in hash: %s\n", icons[i]);
|
||||||
|
}
|
||||||
|
|
||||||
s = strrchr(path, '.');
|
s = strrchr(path, '.');
|
||||||
if (s) *s = '\0';
|
if (s) *s = '\0';
|
||||||
|
@ -620,9 +624,7 @@ ef_read_dir(const char *dir, Ecore_Hash *icons)
|
||||||
{
|
{
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
p = strrchr(file, '/');
|
ecore_hash_set(icons, strdup(file), strdup(file));
|
||||||
if (p) p++;
|
|
||||||
if (p) ecore_hash_set(icons, strdup(p), strdup(p));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FREE(file);
|
FREE(file);
|
||||||
|
|
Loading…
Reference in New Issue