bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1639a9e6bf30269eb5a8b684d5d5dc586be8e7b7
commit 1639a9e6bf30269eb5a8b684d5d5dc586be8e7b7 Author: Marcel Hollerbach <[email protected]> Date: Mon Nov 20 21:07:35 2017 +0100 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. --- src/lib/elementary/efl_ui_multibuttonentry.c | 45 --------------------------- src/lib/elementary/efl_ui_multibuttonentry.eo | 1 - 2 files changed, 46 deletions(-) diff --git a/src/lib/elementary/efl_ui_multibuttonentry.c b/src/lib/elementary/efl_ui_multibuttonentry.c index 51ea55123e..3a7cd3964a 100644 --- a/src/lib/elementary/efl_ui_multibuttonentry.c +++ b/src/lib/elementary/efl_ui_multibuttonentry.c @@ -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) { diff --git a/src/lib/elementary/efl_ui_multibuttonentry.eo b/src/lib/elementary/efl_ui_multibuttonentry.eo index fb60d2ebcc..a4c2bb0a83 100644 --- a/src/lib/elementary/efl_ui_multibuttonentry.eo +++ b/src/lib/elementary/efl_ui_multibuttonentry.eo @@ -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; } --
