summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-09-27 17:28:41 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-10-10 19:28:48 +0200
commit76c202c3e5ed11a7b17c0d17b2df090e1a0e30ca (patch)
treefc94d8106b1692556055b2b08b4f5389dad50bf7 /src
parent5471a2249e16a464331b9cf6b31bd2d3ce1578a7 (diff)
downloadefl-76c202c3e5ed11a7b17c0d17b2df090e1a0e30ca.tar.gz
elm_access: Port to the new focus api
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elm_access.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_access.c b/src/lib/elementary/elm_access.c
index 7523479a3e..ba63237087 100644
--- a/src/lib/elementary/elm_access.c
+++ b/src/lib/elementary/elm_access.c
@@ -535,9 +535,19 @@ _access_highlight_next_get(Evas_Object *obj, Elm_Focus_Direction dir)
}
else
{
- ret = elm_obj_widget_focus_next_get(obj, dir, &target, NULL);
- if (ret && target)
- _elm_access_highlight_set(target);
+ Efl_Ui_Focus_Relations *rel;
+
+ rel = efl_ui_focus_manager_fetch(efl_ui_focus_user_manager_get(obj), obj);
+
+ if (rel)
+ {
+ if (dir == ELM_FOCUS_NEXT)
+ _elm_access_highlight_set(rel->next);
+ else
+ _elm_access_highlight_set(rel->prev);
+
+ free(rel);
+ }
}
}
@@ -690,7 +700,10 @@ _elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
elm_widget_focus_region_show(comming);
}
else
- elm_obj_widget_focus_cycle(obj, dir);
+ {
+ elm_widget_focus_set(obj, EINA_TRUE);
+ efl_ui_focus_manager_move(elm_widget_top_get(obj), dir);
+ }
}
action_by = ELM_ACCESS_ACTION_FIRST;