#include "efreet_private.h"
#include "efreet_cache_private.h"
+#define NON_EXISTING (void *)-1
+
typedef struct _Efreet_Old_Cache Efreet_Old_Cache;
struct _Efreet_Old_Cache
/* we didn't find the icon in the theme or in the inherited directories
* then just look for a non theme icon
*/
- if (!value || (value == NON_EXISTING))
+ if (!value)
{
Efreet_Cache_Fallback_Icon *cache;
if (!value) INF("lookup for `%s` failed in fallback too with %p.", icon, cache);
}
- if (value == NON_EXISTING) value = NULL;
-
#ifdef SLOPPY_SPEC
FREE(tmp);
#endif
/* we didn't find the icons in the theme or in the inherited directories
* then just look for a non theme icon
*/
- if (!value || (value == NON_EXISTING))
+ if (!value)
{
Efreet_Cache_Fallback_Icon *cache;
EINA_LIST_FOREACH(tmps, l, icon)
{
cache = efreet_cache_icon_fallback_find(icon);
value = efreet_icon_fallback_lookup_path(cache);
- if (value && (value != NON_EXISTING))
+ if (value)
break;
}
}
free(data);
#endif
- if (value == NON_EXISTING) value = NULL;
return value;
}
EAPI void efreet_setowner(const char *path);
EAPI void efreet_fsetowner(int fd);
-#define NON_EXISTING (void *)-1
-
EAPI extern int efreet_cache_update;
/**