evas_object_geometry_get
(sd->parent, &hover_area.x, &hover_area.y, &hover_area.w,
&hover_area.h);
- if (!strcmp(evas_object_type_get(sd->parent), "elm_win"))
+ if (sd->parent && eo_isa(sd->parent, ELM_OBJ_WIN_CLASS))
hover_area.x = hover_area.y = 0;
evas_object_geometry_get(obj, &pos.x, &pos.y, NULL, NULL);
//Update Background
evas_object_geometry_get(parent, &x, &y, &w, &h);
- if (!strcmp(evas_object_type_get(parent), "elm_win"))
+ if (parent && eo_isa(parent, ELM_OBJ_WIN_CLASS))
x = y = 0;
evas_object_move(sd->bg, x, y);
evas_object_resize(sd->bg, w, h);
Elm_Entry_Smart_Data *sd = _pd;
top = elm_widget_top_get(obj);
- if (!strcmp(evas_object_type_get(top), "elm_win"))
+ if (top && eo_isa(top, ELM_OBJ_WIN_CLASS))
top_is_win = EINA_TRUE;
if (!sd->editable) return;
top = elm_widget_top_get(data);
if (top)
{
- if (!strcmp(evas_object_type_get(top), "elm_win"))
+ if (top && eo_isa(top, ELM_OBJ_WIN_CLASS))
top_is_win = EINA_TRUE;
if (top_is_win && sd->input_panel_enable && sd->input_panel_show_on_demand &&