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
This commit is contained in:
Marcel Hollerbach 2017-10-19 11:52:26 +02:00
parent 2e26d7a6cf
commit ffbb17a568
2 changed files with 9 additions and 0 deletions

View File

@ -5711,6 +5711,14 @@ _elm_gengrid_elm_widget_focus_state_apply(Eo *obj, Elm_Gengrid_Data *pd EINA_UNU
return elm_obj_widget_focus_state_apply(efl_super(obj, MY_CLASS), current_state, configured_state, obj);
}
EOLIAN static void
_elm_gengrid_item_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_Gen_Item *pd)
{
efl_ui_focus_object_prepare_logical(efl_super(obj, ELM_GENGRID_ITEM_CLASS));
_item_realize(pd);
}
/* Standard widget overrides */
ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(elm_gengrid, Elm_Gengrid_Data)

View File

@ -255,5 +255,6 @@ class Elm.Gengrid.Item(Elm.Widget.Item, Efl.Ui.Focus.Object)
Elm.Widget.Item.cursor_unset;
Efl.Access.name { get; }
Efl.Access.state_set { get; }
Efl.Ui.Focus.Object.prepare_logical;
}
}