main: use eo_isa() to check obj type.

This commit is contained in:
ChunEon Park 2015-03-10 22:31:13 +09:00
parent d66a2555a8
commit 86783c4c9a
1 changed files with 1 additions and 4 deletions

View File

@ -1346,13 +1346,10 @@ elm_object_focus_set(Evas_Object *obj,
if (elm_widget_is(obj))
{
const char *type;
if (focus == elm_widget_focus_get(obj)) return;
// ugly, but, special case for inlined windows
type = evas_object_type_get(obj);
if ((type) && (!strcmp(type, "elm_win")))
if (eo_isa(obj, ELM_WIN_CLASS))
{
Evas_Object *inlined = elm_win_inlined_image_object_get(obj);