summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-03-10 22:31:13 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-03-10 22:31:13 +0900
commitd18e0c938ad141a47b073ccaac82b62c3b336196 (patch)
tree897d009c16c20064199f9e4ff40a534b68cfbe07
parent4deb0ef34df2e0820ce748af6e9a542e839a687a (diff)
main: use eo_isa() to check obj type.
-rw-r--r--src/lib/elm_main.c5
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,
1346 1346
1347 if (elm_widget_is(obj)) 1347 if (elm_widget_is(obj))
1348 { 1348 {
1349 const char *type;
1350
1351 if (focus == elm_widget_focus_get(obj)) return; 1349 if (focus == elm_widget_focus_get(obj)) return;
1352 1350
1353 // ugly, but, special case for inlined windows 1351 // ugly, but, special case for inlined windows
1354 type = evas_object_type_get(obj); 1352 if (eo_isa(obj, ELM_WIN_CLASS))
1355 if ((type) && (!strcmp(type, "elm_win")))
1356 { 1353 {
1357 Evas_Object *inlined = elm_win_inlined_image_object_get(obj); 1354 Evas_Object *inlined = elm_win_inlined_image_object_get(obj);
1358 1355