davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=a1bef554e06a46a027fe1f6eb0f734d377810142

commit a1bef554e06a46a027fe1f6eb0f734d377810142
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Wed Aug 10 20:59:53 2016 +0200

    New 1.18 API: elm.Object.focus_move_policy_automatic
    
    TBH I think that "automatic" should just have been a new value in the
    elm.Object.focus_move_policy enum.... but I really don't have any more
    energy to discuss this thing.
---
 efl/elementary/object.pxi      | 29 +++++++++++++++++++++++++++++
 efl/elementary/object_cdef.pxi |  2 ++
 2 files changed, 31 insertions(+)

diff --git a/efl/elementary/object.pxi b/efl/elementary/object.pxi
index c229e2e..22bea09 100644
--- a/efl/elementary/object.pxi
+++ b/efl/elementary/object.pxi
@@ -1016,6 +1016,8 @@ cdef class Object(SmartObject):
 
         .. versionadded:: 1.15
 
+        .. seealso:: :attr:`focus_move_policy_automatic`
+
         """
         def __get__(self):
             return elm_object_focus_move_policy_get(self.obj)
@@ -1028,6 +1030,33 @@ cdef class Object(SmartObject):
     def focus_move_policy_set(self, Elm_Focus_Move_Policy policy):
         elm_object_focus_move_policy_set(self.obj, policy)
 
+    property focus_move_policy_automatic:
+        """The widget's focus movement policy mode setting.
+
+        When widget in automatic mode, it follows the system focus movement
+        policy mode set by 
:attr:`efl.elementary.Configuration.focus_move_policy`.
+
+        :type: bool
+
+        .. versionadded:: 1.18
+
+        .. seealso::
+            :attr:`focus_move_policy`
+
+            :attr:`efl.elementary.Configuration.focus_move_policy`
+
+        """
+        def __get__(self):
+            return bool(elm_object_focus_move_policy_automatic_get(self.obj))
+        def __set__(self, bint automatic):
+            elm_object_focus_move_policy_automatic_set(self.obj, automatic)
+
+    def focus_move_policy_automatic_get(self):
+        return bool(elm_object_focus_move_policy_automatic_get(self.obj))
+    def focus_move_policy_automatic_set(self, bint automatic):
+        elm_object_focus_move_policy_automatic_set(self.obj, automatic)
+
+
     property focus_region_show_mode:
         """The focus movement policy for the object.
 
diff --git a/efl/elementary/object_cdef.pxi b/efl/elementary/object_cdef.pxi
index 7de9b10..219d0df 100644
--- a/efl/elementary/object_cdef.pxi
+++ b/efl/elementary/object_cdef.pxi
@@ -183,6 +183,8 @@ cdef extern from "Elementary.h":
     Elm_Focus_Move_Policy   elm_object_focus_move_policy_get(Evas_Object *obj)
     void                       
elm_object_focus_region_show_mode_set(Evas_Object *obj, 
Elm_Focus_Region_Show_Mode mode)
     Elm_Focus_Region_Show_Mode elm_object_focus_region_show_mode_get(const 
Evas_Object *obj)
+    Eina_Bool               elm_object_focus_move_policy_automatic_get(const 
Evas_Object *obj)
+    void                    
elm_object_focus_move_policy_automatic_set(Evas_Object *obj, Eina_Bool 
automatic)
 
     # Object - Mirroring (elm_mirroring.h)
     Eina_Bool               elm_object_mirrored_get(const Evas_Object *obj)

-- 


Reply via email to