bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f8badf1c067dfcf75bdaf7b1dacb7c99d58294e8

commit f8badf1c067dfcf75bdaf7b1dacb7c99d58294e8
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Nov 16 18:12:17 2017 +0100

    elm_widget: remove focus set
    
    calling this function was not working at all, so its gone now
---
 src/lib/elementary/elm_widget.c  | 53 ----------------------------------------
 src/lib/elementary/elm_widget.eo | 10 --------
 2 files changed, 63 deletions(-)

diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index 73a1ece629..cefb4d0e11 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -2378,59 +2378,6 @@ elm_widget_parent_highlight_set(Eo *obj, Eina_Bool 
highlighted)
    sd->highlighted = highlighted;
 }
 
-EOLIAN static void
-_elm_widget_focus_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool focus)
-{
-   if (!sd->focused)
-     {
-        focus_order++;
-        sd->focus_order = focus_order;
-        sd->focused = EINA_TRUE;
-        efl_ui_widget_on_focus_update(obj, NULL);
-     }
-
-   if (focus)
-     {
-        if ((_is_focusable(sd->resize_obj)) &&
-            (!elm_widget_disabled_get(sd->resize_obj)))
-          {
-             elm_widget_focus_set(sd->resize_obj, focus);
-          }
-        else
-          {
-             const Eina_List *l;
-             Evas_Object *child;
-
-             EINA_LIST_FOREACH(sd->subobjs, l, child)
-               {
-                  if (!_elm_widget_is(child)) continue;
-                  if ((_is_focusable(child)) &&
-                      (!elm_widget_disabled_get(child)))
-                    {
-                       elm_widget_focus_set(child, focus);
-                       break;
-                    }
-               }
-          }
-     }
-   else
-     {
-        const Eina_List *l;
-        Evas_Object *child;
-
-        EINA_LIST_REVERSE_FOREACH(sd->subobjs, l, child)
-          {
-             if (!_elm_widget_is(child)) continue;
-             if ((_is_focusable(child)) &&
-                 (!elm_widget_disabled_get(child)))
-               {
-                  elm_widget_focus_set(child, focus);
-                  break;
-               }
-          }
-     }
-}
-
 EOLIAN static Evas_Object*
 _elm_widget_widget_parent_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
 {
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index bbff97af77..e9f16dc800 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -143,16 +143,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Efl.Access,
 
            Focus can be disabled by setting @.focus_allow to $false.
          ]]
-         set {
-            [[Set or unsets the focus on this widget.
-
-              Note: When you set focus to this object, if it can handle focus,
-              will take the focus away from the one who had it previously and
-              will, for now on, be the one receiving input events. Unsetting
-              focus will remove the focus from this object, passing it back to
-              the previous element as defined by the focus manager policy.
-            ]]
-         }
          get {
             [[Gets whether this object is currently focused.]]
          }

-- 


Reply via email to