forked from enlightenment/enlightenment
remove a bunch of unused e_util edje icon functions
CID 1039948, 1039946 removals: e_util_*edje_icon_list*
This commit is contained in:
parent
91aee716cc
commit
ba3ffcf029
|
@ -218,99 +218,6 @@ e_util_immortal_check(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_util_edje_icon_list_check(const char *list)
|
||||
{
|
||||
char *buf;
|
||||
const char *p;
|
||||
const char *c;
|
||||
|
||||
if ((!list) || (!list[0])) return 0;
|
||||
buf = alloca(strlen(list) + 1);
|
||||
p = list;
|
||||
while (p)
|
||||
{
|
||||
c = strchr(p, ',');
|
||||
if (c)
|
||||
{
|
||||
strncpy(buf, p, c - p);
|
||||
buf[c - p] = 0;
|
||||
if (e_util_edje_icon_check(buf)) return 1;
|
||||
p = c + 1;
|
||||
if (!*p) return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(buf, p);
|
||||
if (e_util_edje_icon_check(buf)) return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_util_edje_icon_list_set(Evas_Object *obj, const char *list)
|
||||
{
|
||||
char *buf;
|
||||
const char *p;
|
||||
const char *c;
|
||||
|
||||
if ((!list) || (!list[0])) return 0;
|
||||
buf = alloca(strlen(list) + 1);
|
||||
p = list;
|
||||
while (p)
|
||||
{
|
||||
c = strchr(p, ',');
|
||||
if (c)
|
||||
{
|
||||
strncpy(buf, p, c - p);
|
||||
buf[c - p] = 0;
|
||||
if (e_util_edje_icon_set(obj, buf)) return 1;
|
||||
p = c + 1;
|
||||
if (!*p) break;
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(buf, p);
|
||||
if (e_util_edje_icon_set(obj, buf)) return 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list)
|
||||
{
|
||||
char *buf;
|
||||
const char *p;
|
||||
char *c;
|
||||
|
||||
if ((!list) || (!list[0])) return 0;
|
||||
buf = alloca(strlen(list) + 1);
|
||||
p = list;
|
||||
while (p)
|
||||
{
|
||||
c = strchr(p, ',');
|
||||
if (c)
|
||||
{
|
||||
strncpy(buf, p, c - p);
|
||||
buf[c - p] = 0;
|
||||
if (e_util_menu_item_theme_icon_set(mi, buf)) return 1;
|
||||
p = c + 1;
|
||||
if (!*p) return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(buf, p);
|
||||
if (e_util_menu_item_theme_icon_set(mi, buf)) return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
e_util_edje_icon_check(const char *name)
|
||||
{
|
||||
|
|
|
@ -24,9 +24,6 @@ EAPI int e_util_strcasecmp(const char *s1, const char *s2);
|
|||
EAPI int e_util_strcmp(const char *s1, const char *s2);
|
||||
EAPI int e_util_both_str_empty(const char *s1, const char *s2);
|
||||
EAPI int e_util_immortal_check(void);
|
||||
EAPI int e_util_edje_icon_list_check(const char *list);
|
||||
EAPI int e_util_edje_icon_list_set(Evas_Object *obj, const char *list);
|
||||
EAPI int e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list);
|
||||
EAPI int e_util_edje_icon_check(const char *name);
|
||||
EAPI int e_util_edje_icon_set(Evas_Object *obj, const char *name);
|
||||
EAPI int e_util_icon_theme_set(Evas_Object *obj, const char *icon);
|
||||
|
|
Loading…
Reference in New Issue