Whoops bad idea. Efreet is crazy right now. Go back to strncasecmp.
SVN revision: 56681
This commit is contained in:
parent
c24ccdf03e
commit
2f49f3359f
|
@ -87,17 +87,18 @@ _ephoto_thumb_populate(void)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_ephoto_thumb_populate_filter(void *data __UNUSED__, Eio_File *handler __UNUSED__, const Eina_File_Direct_Info *info)
|
_ephoto_thumb_populate_filter(void *data __UNUSED__, Eio_File *handler __UNUSED__, const Eina_File_Direct_Info *info)
|
||||||
{
|
{
|
||||||
const char *bname = info->path + info->name_start, *type;
|
const char *ext;
|
||||||
|
|
||||||
if (bname[0] == '.') return EINA_FALSE;
|
|
||||||
if (info->type == EINA_FILE_DIR) return EINA_FALSE;
|
|
||||||
if ((info->type != EINA_FILE_REG) && (info->type != EINA_FILE_UNKNOWN))
|
|
||||||
return EINA_FALSE;
|
|
||||||
|
|
||||||
type = efreet_mime_type_get(bname);
|
|
||||||
if (!strncmp(type, "image", 5))
|
|
||||||
return EINA_TRUE;
|
|
||||||
|
|
||||||
|
ext = strrchr(info->path, '.');
|
||||||
|
if (ext)
|
||||||
|
{
|
||||||
|
if ((!strncasecmp(ext, ".jpeg", 5)) ||
|
||||||
|
(!strncasecmp(ext, ".jpg", 5)) ||
|
||||||
|
(!strncasecmp(ext, ".png", 5)) ||
|
||||||
|
(!strncasecmp(ext, ".gif", 5)) ||
|
||||||
|
(!strncasecmp(ext, ".svg", 5)))
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue