git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@35574
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#include "Efreet.h"
#include "efreet_private.h"
#include "Efreet.h"
#include "efreet_private.h"
+#define NON_EXISTING (void *)-1
+
static char *efreet_icon_deprecated_user_dir = NULL;
static char *efreet_icon_user_dir = NULL;
static Ecore_Hash *efreet_icon_themes = NULL;
static char *efreet_icon_deprecated_user_dir = NULL;
static char *efreet_icon_user_dir = NULL;
static Ecore_Hash *efreet_icon_themes = NULL;
/* we didn't find the icon in the theme or in the inherited directories
* then just look for a non theme icon
*/
/* 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 == (void *)-1)) value = efreet_icon_fallback_icon(icon);
+ if (!value || (value == NON_EXISTING)) value = efreet_icon_fallback_icon(icon);
- if (value == (void *)-1) value = NULL;
+ if (value == NON_EXISTING) value = NULL;
/* we didn't find the icons in the theme or in the inherited directories
* then just look for a non theme icon
*/
/* 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 == (void *)-1))
+ if (!value || (value == NON_EXISTING))
{
ecore_list_first_goto(icons);
while ((icon = ecore_list_next(icons)))
{
value = efreet_icon_fallback_icon(icon);
{
ecore_list_first_goto(icons);
while ((icon = ecore_list_next(icons)))
{
value = efreet_icon_fallback_icon(icon);
- if (value && (value != (void *)-1))
+ if (value && (value != NON_EXISTING))
- if (value == (void *)-1) value = NULL;
+ if (value == NON_EXISTING) value = NULL;
if ((!parent_theme) || (parent_theme == theme)) continue;
value = efreet_icon_find_helper(parent_theme, icon, size);
if ((!parent_theme) || (parent_theme == theme)) continue;
value = efreet_icon_find_helper(parent_theme, icon, size);
- if (value && (value != (void *)-1)) break;
+ if (value && (value != NON_EXISTING)) break;
}
}
/* if this isn't the hicolor theme, and we have no other fallbacks
}
}
/* if this isn't the hicolor theme, and we have no other fallbacks
value = efreet_icon_lookup_icon(theme, icon, size);
/* we didin't find the image check the inherited themes */
value = efreet_icon_lookup_icon(theme, icon, size);
/* we didin't find the image check the inherited themes */
- if (!value || (value == (void *)-1))
+ if (!value || (value == NON_EXISTING))
value = efreet_icon_find_fallback(theme, icon, size);
recurse--;
value = efreet_icon_find_fallback(theme, icon, size);
recurse--;
value = efreet_icon_list_find_helper(parent_theme,
icons, size);
value = efreet_icon_list_find_helper(parent_theme,
icons, size);
- if (value && (value != (void *)-1)) break;
+ if (value && (value != NON_EXISTING)) break;
while ((icon = ecore_list_next(icons)))
{
value = efreet_icon_lookup_icon(theme, icon, size);
while ((icon = ecore_list_next(icons)))
{
value = efreet_icon_lookup_icon(theme, icon, size);
- if (value && (value != (void *)-1))
+ if (value && (value != NON_EXISTING))
break;
}
/* we didn't find the image check the inherited themes */
break;
}
/* we didn't find the image check the inherited themes */
- if (!value || (value == (void *)-1))
+ if (!value || (value == NON_EXISTING))
value = efreet_icon_list_find_fallback(theme, icons, size);
recurse--;
value = efreet_icon_list_find_fallback(theme, icons, size);
recurse--;
if (!cache->path)
{
ecore_list_prepend(list, cache);
if (!cache->path)
{
ecore_list_prepend(list, cache);
}
else if (!stat(cache->path, &st) && st.st_mtime == cache->lasttime)
{
}
else if (!stat(cache->path, &st) && st.st_mtime == cache->lasttime)
{