diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-03-10 22:31:13 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-03-10 22:31:13 +0900 |
commit | d18e0c938ad141a47b073ccaac82b62c3b336196 (patch) | |
tree | 897d009c16c20064199f9e4ff40a534b68cfbe07 | |
parent | 4deb0ef34df2e0820ce748af6e9a542e839a687a (diff) | |
download | elementary-d18e0c938ad141a47b073ccaac82b62c3b336196.tar.gz |
main: use eo_isa() to check obj type.
-rw-r--r-- | src/lib/elm_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 4bb135e6f..67d46f22b 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -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); |