forked from enlightenment/efl
widget: Remove tree_unfocusable from EO
It was deprecated (in elm_object API) a very long time ago. Ref T5363
This commit is contained in:
parent
5e7de75914
commit
1a65b7018d
|
@ -1769,9 +1769,12 @@ _full_eval_children(Eo *obj, Elm_Widget_Smart_Data *sd)
|
||||||
*
|
*
|
||||||
* @ingroup Widget
|
* @ingroup Widget
|
||||||
*/
|
*/
|
||||||
EOLIAN static void
|
EAPI void
|
||||||
_elm_widget_tree_unfocusable_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool tree_unfocusable)
|
elm_widget_tree_unfocusable_set(Eo *obj, Eina_Bool tree_unfocusable)
|
||||||
{
|
{
|
||||||
|
Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
|
||||||
|
if (!sd) return;
|
||||||
|
|
||||||
tree_unfocusable = !!tree_unfocusable;
|
tree_unfocusable = !!tree_unfocusable;
|
||||||
if (sd->tree_unfocusable == tree_unfocusable) return;
|
if (sd->tree_unfocusable == tree_unfocusable) return;
|
||||||
sd->tree_unfocusable = tree_unfocusable;
|
sd->tree_unfocusable = tree_unfocusable;
|
||||||
|
@ -1791,9 +1794,12 @@ _elm_widget_tree_unfocusable_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool t
|
||||||
*
|
*
|
||||||
* @ingroup Widget
|
* @ingroup Widget
|
||||||
*/
|
*/
|
||||||
EOLIAN static Eina_Bool
|
EAPI Eina_Bool
|
||||||
_elm_widget_tree_unfocusable_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
|
elm_widget_tree_unfocusable_get(const Eo *obj)
|
||||||
{
|
{
|
||||||
|
Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
|
||||||
|
if (!sd) return EINA_FALSE;
|
||||||
|
|
||||||
return sd->tree_unfocusable;
|
return sd->tree_unfocusable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -246,18 +246,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
|
||||||
style: string; [[The name of the focus highlight style.]]
|
style: string; [[The name of the focus highlight style.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property tree_unfocusable {
|
|
||||||
[[Make the elementary object and its children to be unfocusable (or focusable).
|
|
||||||
If the tree is set as unfocusable, newest focused object which is not in
|
|
||||||
this tree will get focus.
|
|
||||||
This API can be helpful for an object to be deleted.
|
|
||||||
When an object will be deleted soon, it and its children may not want to
|
|
||||||
get focus (by focus reverting or by other focus controls).
|
|
||||||
Then, just use this API before deleting.]]
|
|
||||||
values {
|
|
||||||
tree_unfocusable: bool; [[$true for unfocusable, $false for focusable.]]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@property theme {
|
@property theme {
|
||||||
[[Widget theme]]
|
[[Widget theme]]
|
||||||
values {
|
values {
|
||||||
|
|
Loading…
Reference in New Issue