aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-01 10:51:18 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-13 17:01:37 +0100
commit14347e9a332393cdc0b76f5d3c78be4c6b1c5aab (patch)
tree124f1cfd8588caa1d38b53ed480acf28f301b231
parentgengrid: unset last_focused pointer when focus moved away (diff)
downloadefl-14347e9a332393cdc0b76f5d3c78be4c6b1c5aab.tar.gz
elm_widget_item_static_focus: prepare the gengrid before preparing items
this fixes some missing registrations, which lead to errors. ref https://phab.enlightenment.org/T7391 Differential Revision: https://phab.enlightenment.org/D7124
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_widget_item_static_focus.c b/src/lib/elementary/elm_widget_item_static_focus.c
index 4c859f4d83..168e982197 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -52,7 +52,13 @@ _grid_realized_cb(void *data, const Efl_Event *ev)
is_group = (itc && itc->item_style && !strcmp(itc->item_style, "group_index"));
if (!elm_object_item_disabled_get(data) && !is_group)
- efl_ui_focus_object_prepare_logical(data);
+ {
+ Elm_Widget_Item_Data *wpd = efl_data_scope_get(data, ELM_WIDGET_ITEM_CLASS);
+
+ //first prepare the container
+ efl_ui_focus_object_prepare_logical(wpd->widget);
+ efl_ui_focus_object_prepare_logical(data);
+ }
}
static void