entry: use ea_isa() for object types comparison

Reviewers: seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: kimcinoo, seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2132
This commit is contained in:
Amitesh Singh 2015-03-12 15:44:09 +09:00 committed by ChunEon Park
parent 1f8ad27e40
commit a56457ac76
1 changed files with 1 additions and 1 deletions

View File

@ -3460,7 +3460,7 @@ _elm_entry_evas_object_smart_add(Eo *obj, Elm_Entry_Data *priv)
#ifdef HAVE_ELEMENTARY_X
top = elm_widget_top_get(obj);
if (top && (!eina_streq(evas_object_type_get(top), "elm_win")))
if (!eo_isa(top, ELM_WIN_CLASS))
top = ecore_evas_data_get(ecore_evas_ecore_evas_get(evas_object_evas_get(obj)), "elm_win");
if ((top) && (elm_win_xwindow_get(top)))
{