summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 17:27:04 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 20:53:20 +0900
commit1a65b7018d5cbff8f7b7441574499a6bc5fa5925 (patch)
tree3936fbe5f82a1833bc622b900019956911b225d8
parent5e7de75914c1f99e37228b6fb7db309eb3072ab0 (diff)
widget: Remove tree_unfocusable from EO
It was deprecated (in elm_object API) a very long time ago. Ref T5363
-rw-r--r--src/lib/elementary/elm_widget.c14
-rw-r--r--src/lib/elementary/elm_widget.eo12
2 files changed, 10 insertions, 16 deletions
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index 25631b7163..19744a8804 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -1769,9 +1769,12 @@ _full_eval_children(Eo *obj, Elm_Widget_Smart_Data *sd)
1769 * 1769 *
1770 * @ingroup Widget 1770 * @ingroup Widget
1771 */ 1771 */
1772EOLIAN static void 1772EAPI void
1773_elm_widget_tree_unfocusable_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool tree_unfocusable) 1773elm_widget_tree_unfocusable_set(Eo *obj, Eina_Bool tree_unfocusable)
1774{ 1774{
1775 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1776 if (!sd) return;
1777
1775 tree_unfocusable = !!tree_unfocusable; 1778 tree_unfocusable = !!tree_unfocusable;
1776 if (sd->tree_unfocusable == tree_unfocusable) return; 1779 if (sd->tree_unfocusable == tree_unfocusable) return;
1777 sd->tree_unfocusable = tree_unfocusable; 1780 sd->tree_unfocusable = tree_unfocusable;
@@ -1791,9 +1794,12 @@ _elm_widget_tree_unfocusable_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool t
1791 * 1794 *
1792 * @ingroup Widget 1795 * @ingroup Widget
1793 */ 1796 */
1794EOLIAN static Eina_Bool 1797EAPI Eina_Bool
1795_elm_widget_tree_unfocusable_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd) 1798elm_widget_tree_unfocusable_get(const Eo *obj)
1796{ 1799{
1800 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
1801 if (!sd) return EINA_FALSE;
1802
1797 return sd->tree_unfocusable; 1803 return sd->tree_unfocusable;
1798} 1804}
1799 1805
diff --git a/src/lib/elementary/elm_widget.eo b/src/lib/elementary/elm_widget.eo
index 43a69576bd..55a885e332 100644
--- a/src/lib/elementary/elm_widget.eo
+++ b/src/lib/elementary/elm_widget.eo
@@ -246,18 +246,6 @@ abstract Elm.Widget (Efl.Canvas.Group, Elm.Interface.Atspi_Accessible,
246 style: string; [[The name of the focus highlight style.]] 246 style: string; [[The name of the focus highlight style.]]
247 } 247 }
248 } 248 }
249 @property tree_unfocusable {
250 [[Make the elementary object and its children to be unfocusable (or focusable).
251 If the tree is set as unfocusable, newest focused object which is not in
252 this tree will get focus.
253 This API can be helpful for an object to be deleted.
254 When an object will be deleted soon, it and its children may not want to
255 get focus (by focus reverting or by other focus controls).
256 Then, just use this API before deleting.]]
257 values {
258 tree_unfocusable: bool; [[$true for unfocusable, $false for focusable.]]
259 }
260 }
261 @property theme { 249 @property theme {
262 [[Widget theme]] 250 [[Widget theme]]
263 values { 251 values {