forked from enlightenment/enlightenment
move isedje() e_util and simplify/inline
This commit is contained in:
parent
784813ad4d
commit
fd6f686467
|
@ -724,17 +724,6 @@ e_menu_item_label_set(E_Menu_Item *mi, const char *label)
|
||||||
mi->menu->changed = 1;
|
mi->menu->changed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
|
||||||
isedje(Evas_Object *obj)
|
|
||||||
{
|
|
||||||
const char *type;
|
|
||||||
if (!obj) return EINA_FALSE;
|
|
||||||
type = evas_object_type_get(obj);
|
|
||||||
if (!obj) return EINA_FALSE;
|
|
||||||
if (!strcmp(type, "edje")) return EINA_TRUE;
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
e_menu_item_submenu_set(E_Menu_Item *mi, E_Menu *sub)
|
e_menu_item_submenu_set(E_Menu_Item *mi, E_Menu *sub)
|
||||||
{
|
{
|
||||||
|
|
|
@ -87,5 +87,11 @@ e_util_pointer_center(const E_Client *ec)
|
||||||
y + ec->y + (ec->h / 2));
|
y + ec->y + (ec->h / 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline Eina_Bool
|
||||||
|
isedje(const Evas_Object *obj)
|
||||||
|
{
|
||||||
|
return obj && !e_util_strcmp(evas_object_type_get(obj), "edje");
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue