move isedje() e_util and simplify/inline

This commit is contained in:
Mike Blumenkrantz 2014-07-03 10:45:59 -04:00
parent 784813ad4d
commit fd6f686467
2 changed files with 6 additions and 11 deletions

View File

@ -724,17 +724,6 @@ e_menu_item_label_set(E_Menu_Item *mi, const char *label)
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
e_menu_item_submenu_set(E_Menu_Item *mi, E_Menu *sub)
{

View File

@ -87,5 +87,11 @@ e_util_pointer_center(const E_Client *ec)
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