static Evas_Object *
_parent_win_get(Evas_Object *obj)
{
- while ((obj) && (strcmp(evas_object_type_get(obj), "elm_win")))
+ while (eo_isa(obj, ELM_WIN_CLASS))
obj = elm_object_parent_widget_get(obj);
return obj;
l_next = eina_list_next(l);
opt = eina_list_data_get(l_next);
if (l_next && opt && opt->obj &&
- !strcmp(elm_widget_type_get(opt->obj), "elm_entry"))
+ eo_isa(opt->obj, ELM_ENTRY_CLASS))
{
linew = 0;
line_num++;
if (linew > w)
{
opt = eina_list_data_get(l_next);
- if (opt && opt->obj && !strcmp(elm_widget_type_get(opt->obj), "elm_entry"))
+ if (opt && opt->obj && eo_isa(opt->obj, ELM_ENTRY_CLASS))
{
xx = x;
yy += hh;
if (elm_widget_is(dropable->obj))
{
win = elm_widget_top_get(dropable->obj);
- if (win && !strcmp(evas_object_type_get(win), "elm_win"))
+ if (win && eo_isa(win, ELM_WIN_CLASS))
{
Evas_Coord x2, y2;
int rot = elm_win_rotation_get(win);