summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-10-19 11:52:26 +0200
committerMarcel Hollerbach <marcel@osg.samsung.com>2017-10-19 15:20:59 +0200
commitffbb17a568b89ebe4f11a7ec8e8e11797b245350 (patch)
tree67cdd545c58ef5a9189ce0851bae5f9c335c30e2
parent2e26d7a6cf51abad9ae8faf1261614387daa3940 (diff)
elm_gengrid: force the item to be realized once we try to move focus
So the widget is there, once we try to register it
-rw-r--r--src/lib/elementary/elm_gengrid.c8
-rw-r--r--src/lib/elementary/elm_gengrid_item.eo1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index d3a028126b..e7c5c042ba 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -5711,6 +5711,14 @@ _elm_gengrid_elm_widget_focus_state_apply(Eo *obj, Elm_Gengrid_Data *pd EINA_UNU
5711 return elm_obj_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj); 5711 return elm_obj_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj);
5712} 5712}
5713 5713
5714EOLIAN static void
5715_elm_gengrid_item_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_Gen_Item *pd)
5716{
5717 efl_ui_focus_object_prepare_logical(efl_super(obj, ELM_GENGRID_ITEM_CLASS));
5718 _item_realize(pd);
5719}
5720
5721
5714/* Standard widget overrides */ 5722/* Standard widget overrides */
5715 5723
5716ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(elm_gengrid, Elm_Gengrid_Data) 5724ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(elm_gengrid, Elm_Gengrid_Data)
diff --git a/src/lib/elementary/elm_gengrid_item.eo b/src/lib/elementary/elm_gengrid_item.eo
index cf0898cd42..6bdaad694a 100644
--- a/src/lib/elementary/elm_gengrid_item.eo
+++ b/src/lib/elementary/elm_gengrid_item.eo
@@ -255,5 +255,6 @@ class Elm.Gengrid.Item(Elm.Widget.Item, Efl.Ui.Focus.Object)
255 Elm.Widget.Item.cursor_unset; 255 Elm.Widget.Item.cursor_unset;
256 Efl.Access.name { get; } 256 Efl.Access.name { get; }
257 Efl.Access.state_set { get; } 257 Efl.Access.state_set { get; }
258 Efl.Ui.Focus.Object.prepare_logical;
258 } 259 }
259} 260}