e menus - check if its an edje obj without having complaints or using eo

This commit is contained in:
Carsten Haitzler 2014-07-01 16:26:45 +09:00
parent cd9588f88a
commit 7cce5642d6
1 changed files with 4 additions and 1 deletions

View File

@ -727,8 +727,11 @@ e_menu_item_label_set(E_Menu_Item *mi, const char *label)
static Eina_Bool
isedje(Evas_Object *obj)
{
const char *type;
if (!obj) return EINA_FALSE;
if (edje_object_play_get(obj)) return EINA_TRUE;
type = evas_object_type_get(obj);
if (!obj) return EINA_FALSE;
if (!strcmp(type, "edje")) return EINA_TRUE;
return EINA_FALSE;
}