EAPI int ecore_desktop_icon_init(void);
EAPI int ecore_desktop_icon_shutdown(void);
- const char *ecore_desktop_icon_find(const char *icon,
+ EAPI char *ecore_desktop_icon_find(const char *icon,
const char *icon_size,
const char *icon_theme);
//#define DEBUG 1
-static const char *_ecore_desktop_icon_find0(const char *icon,
+static char *_ecore_desktop_icon_find0(const char *icon,
const char *icon_size,
const char *icon_theme);
* @ingroup Ecore_Desktop_Icon_Group
*/
-const char *
+EAPI char *
ecore_desktop_icon_find(const char *icon, const char *icon_size,
const char *icon_theme)
{
- const char *dir = NULL, *icn;
- Ecore_List *icons;
- int in_cache = 0;
- double begin;
+ char *dir = NULL, *icn;
+ Ecore_List *icons;
+ int in_cache = 0;
+ double begin;
begin = ecore_time_get();
if (icon == NULL)
if (!icons)
return NULL;
ecore_list_goto_first(icons);
- while ((icn = (char *)ecore_list_next(icons)))
+ while ((icn = ecore_list_next(icons)))
{
char *ext;
#ifdef DEBUG
* @param icon_theme The icon theme to search in.
* @return The full path to the found icon.
*/
-static const char *
+static char *
_ecore_desktop_icon_find0(const char *icon, const char *icon_size,
const char *icon_theme)
{