elm_widget: remove focus set

calling this function was not working at all, so its gone now
This commit is contained in:
Marcel Hollerbach 2017-11-16 18:12:17 +01:00
parent 84a6a329fe
commit f8badf1c06
2 changed files with 0 additions and 63 deletions

View File

@ -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)
{

View File

@ -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.]]
}