elm_multibuttonentry: on_focus_update is not needed anymore

the widget itself never gets focus, the elements of the button are
getting them. MBE is basically just a box. The text input for the entry
is setted by elm_entry itself when it gets focus.

The legacy "focused" event is emitted somewhere seperatly.
This commit is contained in:
Marcel Hollerbach 2017-11-20 21:07:35 +01:00
parent e1ff459e1b
commit 1639a9e6bf
2 changed files with 0 additions and 46 deletions

View File

@ -351,51 +351,6 @@ _view_update(Efl_Ui_Multibuttonentry_Data *sd)
_visual_guide_text_set(obj);
}
EOLIAN static Eina_Bool
_efl_ui_multibuttonentry_elm_widget_on_focus_update(Eo *obj, Efl_Ui_Multibuttonentry_Data *sd, Elm_Object_Item *item EINA_UNUSED)
{
if (elm_widget_focus_get(obj))
{
// ACCESS
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON) goto end;
if (sd->editable)
{
if ((sd->selected_it))
{
elm_layout_signal_emit(VIEW(sd->selected_it), "elm,state,focused", "elm");
elm_object_focus_set(VIEW(sd->selected_it), EINA_TRUE);
efl_ui_text_input_panel_show(sd->entry);
}
else if (((!sd->selected_it) || (!eina_list_count(sd->items))))
{
_view_update(sd);
efl_ui_text_input_panel_show(sd->entry);
}
}
efl_event_callback_legacy_call
(obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
}
else
{
if (sd->editable)
{
_view_update(sd);
efl_ui_text_input_panel_hide(sd->entry);
}
if (sd->selected_it)
elm_layout_signal_emit(VIEW(sd->selected_it), "elm,state,unfocused", "elm");
efl_event_callback_legacy_call
(obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
}
end:
return EINA_TRUE;
}
static void
_item_del(Elm_Multibuttonentry_Item_Data *item)
{

View File

@ -164,7 +164,6 @@ class Efl.Ui.Multibuttonentry (Efl.Ui.Layout, Efl.Ui.Clickable, Efl.Ui.Format)
Efl.Object.constructor;
Elm.Widget.theme_apply;
Elm.Widget.on_access_update;
Elm.Widget.on_focus_update;
Efl.Ui.Translatable.translation_update;
Elm.Widget.widget_event;
Efl.Access.children { get; }