summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-04-14 20:44:10 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-04-14 20:44:10 +0200
commite8172a5cfe0ffd1b15b5bf9862a3dd4fc09ebfdb (patch)
treebcc8a1c28815502e5acffe234c667d68d343c012
parent0f0e84d7925c74a30ab00bad31cbf2e2b83ade6a (diff)
New 1.14 API: elm.Configuration.window_auto_focus_enable/window_auto_focus_animate
-rw-r--r--efl/elementary/configuration.pxd5
-rw-r--r--efl/elementary/configuration.pyx34
2 files changed, 38 insertions, 1 deletions
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":
174 void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled) 174 void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled)
175 Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get() 175 Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get()
176 void elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode) 176 void elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode)
177 Eina_Bool elm_config_window_auto_focus_enable_get()
178 void elm_config_window_auto_focus_enable_set(Eina_Bool enable)
179 Eina_Bool elm_config_window_auto_focus_animate_get()
180 void elm_config_window_auto_focus_animate_set(Eina_Bool enable)
181
177 182
178 Eina_Bool elm_config_mirrored_get() 183 Eina_Bool elm_config_mirrored_get()
179 void elm_config_mirrored_set(Eina_Bool mirrored) 184 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):
1117 def __set__(self, bint disabled): 1117 def __set__(self, bint disabled):
1118 elm_config_item_select_on_focus_disabled_set(disabled) 1118 elm_config_item_select_on_focus_disabled_set(disabled)
1119 1119
1120
1121 property focus_autoscroll_mode: 1120 property focus_autoscroll_mode:
1122 """Focus Autoscroll Mode 1121 """Focus Autoscroll Mode
1123 1122
@@ -1135,7 +1134,40 @@ cdef class Configuration(object):
1135 def __set__(self, Elm_Focus_Autoscroll_Mode mode): 1134 def __set__(self, Elm_Focus_Autoscroll_Mode mode):
1136 elm_config_focus_autoscroll_mode_set(mode) 1135 elm_config_focus_autoscroll_mode_set(mode)
1137 1136
1137 property window_auto_focus_enable:
1138 """The auto focus enable flag
1139
1140 This determines if elementary will show a focus box indicating the
1141 focused widget automatically if keyboard controls like "Tab" are
1142 used to switch focus between widgets. Mouse or touch control will
1143 hide this auto shown focus, unless focus display has been explicitly
1144 forced on for the window.
1145
1146 :type: bool
1147
1148 .. versionadded:: 1.14
1149
1150 """
1151 def __set__(self, bint enable):
1152 elm_config_window_auto_focus_enable_set(enable)
1153 def __get__(self):
1154 return bool(elm_config_window_auto_focus_enable_get())
1138 1155
1156 property window_auto_focus_animate:
1157 """The auto focus animate flag
1158
1159 If auto focus is enabled then this will determine if the focus
1160 display will be animated or not.
1161
1162 :type: bool
1163
1164 .. versionadded:: 1.14
1165
1166 """
1167 def __set__(self, bint enable):
1168 elm_config_window_auto_focus_animate_set(enable)
1169 def __get__(self):
1170 return bool(elm_config_window_auto_focus_animate_get())
1139 1171
1140 property mirrored: 1172 property mirrored:
1141 """Get the system mirrored mode. This determines the default 1173 """Get the system mirrored mode. This determines the default