summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-11-16 18:12:17 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2017-11-17 16:08:14 +0100
commitf8badf1c067dfcf75bdaf7b1dacb7c99d58294e8 (patch)
tree9e4f1d1dc6fccccedd0d985d195f0ed1bc4e1ce7
parent84a6a329fe4a4d199f3945d653281e64c7df8fd4 (diff)
downloadefl-f8badf1c067dfcf75bdaf7b1dacb7c99d58294e8.tar.gz
elm_widget: remove focus set
calling this function was not working at all, so its gone now
-rw-r--r--src/lib/elementary/elm_widget.c53
-rw-r--r--src/lib/elementary/elm_widget.eo10
2 files changed, 0 insertions, 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.]]
}