davemds pushed a commit to branch master.

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

commit e8172a5cfe0ffd1b15b5bf9862a3dd4fc09ebfdb
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Tue Apr 14 20:44:10 2015 +0200

    New 1.14 API: 
elm.Configuration.window_auto_focus_enable/window_auto_focus_animate
---
 efl/elementary/configuration.pxd |  5 +++++
 efl/elementary/configuration.pyx | 34 +++++++++++++++++++++++++++++++++-
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/efl/elementary/configuration.pxd b/efl/elementary/configuration.pxd
index b69cd30..79827b4 100644
--- a/efl/elementary/configuration.pxd
+++ b/efl/elementary/configuration.pxd
@@ -174,6 +174,11 @@ cdef extern from "Elementary.h":
     void                    
elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled)
     Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get()
     void                    
elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode)
+    Eina_Bool               elm_config_window_auto_focus_enable_get()
+    void                    elm_config_window_auto_focus_enable_set(Eina_Bool 
enable)
+    Eina_Bool               elm_config_window_auto_focus_animate_get()
+    void                    elm_config_window_auto_focus_animate_set(Eina_Bool 
enable)
+    
 
     Eina_Bool               elm_config_mirrored_get()
     void                    elm_config_mirrored_set(Eina_Bool mirrored)
diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index d918d4e..fce8b0d 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -1117,7 +1117,6 @@ cdef class Configuration(object):
         def __set__(self, bint disabled):
             elm_config_item_select_on_focus_disabled_set(disabled)
 
-
     property focus_autoscroll_mode:
         """Focus Autoscroll Mode
 
@@ -1135,7 +1134,40 @@ cdef class Configuration(object):
         def __set__(self, Elm_Focus_Autoscroll_Mode mode):
             elm_config_focus_autoscroll_mode_set(mode)
 
+    property window_auto_focus_enable:
+        """The auto focus enable flag
+
+        This determines if elementary will show a focus box indicating the
+        focused widget automatically if keyboard controls like "Tab" are
+        used to switch focus between widgets. Mouse or touch control will
+        hide this auto shown focus, unless focus display has been explicitly
+        forced on for the window.
+
+        :type: bool
+
+        .. versionadded:: 1.14
+
+        """
+        def __set__(self, bint enable):
+            elm_config_window_auto_focus_enable_set(enable)
+        def __get__(self):
+            return bool(elm_config_window_auto_focus_enable_get())
 
+    property window_auto_focus_animate:
+        """The auto focus animate flag
+
+        If auto focus is enabled then this will determine if the focus
+        display will be animated or not.
+
+        :type: bool
+
+        .. versionadded:: 1.14
+
+        """
+        def __set__(self, bint enable):
+            elm_config_window_auto_focus_animate_set(enable)
+        def __get__(self):
+            return bool(elm_config_window_auto_focus_animate_get())
 
     property mirrored:
         """Get the system mirrored mode. This determines the default

-- 


Reply via email to