diff options
author | Marcel Hollerbach <marcel@osg.samsung.com> | 2017-10-19 15:19:55 +0200 |
---|---|---|
committer | Marcel Hollerbach <marcel@osg.samsung.com> | 2017-10-19 15:20:59 +0200 |
commit | 5e96d6e37806be1fafae57476048e909a385a6db (patch) | |
tree | b094c264fc3c84aec5bfc5aa81d3bf45cb960096 /src | |
parent | 0c3bec93a1ee64ff26ea1acbc0fc6ae36e625157 (diff) |
efl_ui_focus_manager_calc: really free all direction
i must have been have asleep when i wrote this, we need to iterate all
directions not only to the max id of 4
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elementary/efl_ui_focus_manager_calc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c index 3232ca23ce..44b723bc12 100644 --- a/src/lib/elementary/efl_ui_focus_manager_calc.c +++ b/src/lib/elementary/efl_ui_focus_manager_calc.c | |||
@@ -172,7 +172,7 @@ node_item_free(Node *item) | |||
172 | Node *n; | 172 | Node *n; |
173 | Eina_List *l; | 173 | Eina_List *l; |
174 | //free the graph items | 174 | //free the graph items |
175 | for(int i = EFL_UI_FOCUS_DIRECTION_UP;i < NODE_DIRECTIONS_COUNT; i++) | 175 | for(int i = EFL_UI_FOCUS_DIRECTION_UP;i < EFL_UI_FOCUS_DIRECTION_LAST; i++) |
176 | { | 176 | { |
177 | border_partners_set(item, i, NULL); | 177 | border_partners_set(item, i, NULL); |
178 | } | 178 | } |
@@ -845,7 +845,7 @@ _efl_ui_focus_manager_calc_unregister(Eo *obj EINA_UNUSED, Efl_Ui_Focus_Manager_ | |||
845 | } | 845 | } |
846 | 846 | ||
847 | //add all neighbors of the node to the dirty list | 847 | //add all neighbors of the node to the dirty list |
848 | for(int i = EFL_UI_FOCUS_DIRECTION_UP; i < NODE_DIRECTIONS_COUNT; i++) | 848 | for(int i = EFL_UI_FOCUS_DIRECTION_UP; i < EFL_UI_FOCUS_DIRECTION_LAST; i++) |
849 | { | 849 | { |
850 | Node *partner; | 850 | Node *partner; |
851 | Eina_List *n; | 851 | Eina_List *n; |
@@ -949,7 +949,7 @@ _iterator_next(Border_Elements_Iterator *it, void **data) | |||
949 | 949 | ||
950 | EINA_ITERATOR_FOREACH(it->real_iterator, node) | 950 | EINA_ITERATOR_FOREACH(it->real_iterator, node) |
951 | { | 951 | { |
952 | for(int i = EFL_UI_FOCUS_DIRECTION_UP ;i < NODE_DIRECTIONS_COUNT; i++) | 952 | for(int i = EFL_UI_FOCUS_DIRECTION_UP ;i < EFL_UI_FOCUS_DIRECTION_LAST; i++) |
953 | { | 953 | { |
954 | if (node->type != NODE_TYPE_ONLY_LOGICAL && | 954 | if (node->type != NODE_TYPE_ONLY_LOGICAL && |
955 | !DIRECTION_ACCESS(node, i).partners) | 955 | !DIRECTION_ACCESS(node, i).partners) |