summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-02-07 12:12:40 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-02-07 12:12:40 +0100
commitfb09f3dad5443bb6e47a892eeb00e32314495cfd (patch)
tree3ca856713b9cd3730fd8be61816d897f14d7fa98 /efl
parentc6508c52bb3cf08a5954ae2b7d90caa7c7bce957 (diff)
Deprecate elm.Configuration.engine and preferred_engine
Also fix misnamed _accel_preference_set() (removed trailing _) and bumped version to beta2
Diffstat (limited to 'efl')
-rw-r--r--efl/__init__.py2
-rw-r--r--efl/elementary/configuration.pyx13
2 files changed, 13 insertions, 2 deletions
diff --git a/efl/__init__.py b/efl/__init__.py
index ae0d1fc..010a34a 100644
--- a/efl/__init__.py
+++ b/efl/__init__.py
@@ -20,5 +20,5 @@
20# pre-release: "1.13.0-beta1" ( 1, 13, 0 ) 20# pre-release: "1.13.0-beta1" ( 1, 13, 0 )
21# release: "1.13.0" ( 1, 13, 0 ) 21# release: "1.13.0" ( 1, 13, 0 )
22 22
23__version__ = "1.13.0-beta1" 23__version__ = "1.13.0-beta2"
24__version_info__ = ( 1, 13, 0 ) 24__version_info__ = ( 1, 13, 0 )
diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index f57292d..f3828af 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -183,6 +183,7 @@ Inheritance diagram
183from cpython cimport PyUnicode_AsUTF8String 183from cpython cimport PyUnicode_AsUTF8String
184 184
185from efl.utils.conversions cimport _ctouni, eina_list_strings_to_python_list 185from efl.utils.conversions cimport _ctouni, eina_list_strings_to_python_list
186from efl.utils.deprecated cimport DEPRECATED
186 187
187 188
188cdef class Configuration(object): 189cdef class Configuration(object):
@@ -620,6 +621,9 @@ cdef class Configuration(object):
620 621
621 :type: string 622 :type: string
622 623
624 .. deprecated:: 1.13
625 Use :attr:`accel_preference` instead.
626
623 """ 627 """
624 def __get__(self): 628 def __get__(self):
625 return _ctouni(elm_config_engine_get()) 629 return _ctouni(elm_config_engine_get())
@@ -640,6 +644,9 @@ cdef class Configuration(object):
640 644
641 :type: string 645 :type: string
642 646
647 .. deprecated:: 1.13
648 Use :attr:`accel_preference` instead.
649
643 """ 650 """
644 def __get__(self): 651 def __get__(self):
645 return _ctouni(elm_config_preferred_engine_get()) 652 return _ctouni(elm_config_preferred_engine_get())
@@ -1313,8 +1320,10 @@ def item_select_on_focus_disabled_get(self):
1313def item_select_on_focus_disabled_set(self, bint disabled): 1320def item_select_on_focus_disabled_set(self, bint disabled):
1314 elm_config_item_select_on_focus_disabled_set(disabled) 1321 elm_config_item_select_on_focus_disabled_set(disabled)
1315 1322
1323@DEPRECATED("1.13", "Use accel_preference_get() instead.")
1316def preferred_engine_get(): 1324def preferred_engine_get():
1317 return _ctouni(elm_config_preferred_engine_get()) 1325 return _ctouni(elm_config_preferred_engine_get())
1326@DEPRECATED("1.13", "Use accel_preference_set() instead.")
1318def preferred_engine_set(engine): 1327def preferred_engine_set(engine):
1319 if isinstance(engine, unicode): engine = PyUnicode_AsUTF8String(engine) 1328 if isinstance(engine, unicode): engine = PyUnicode_AsUTF8String(engine)
1320 elm_config_preferred_engine_set( 1329 elm_config_preferred_engine_set(
@@ -1322,13 +1331,15 @@ def preferred_engine_set(engine):
1322 1331
1323def accel_preference_get(): 1332def accel_preference_get():
1324 return _ctouni(elm_config_accel_preference_get()) 1333 return _ctouni(elm_config_accel_preference_get())
1325def _accel_preference_set(pref): 1334def accel_preference_set(pref):
1326 if isinstance(pref, unicode): pref = PyUnicode_AsUTF8String(pref) 1335 if isinstance(pref, unicode): pref = PyUnicode_AsUTF8String(pref)
1327 elm_config_accel_preference_set( 1336 elm_config_accel_preference_set(
1328 <const char *>pref if pref is not None else NULL) 1337 <const char *>pref if pref is not None else NULL)
1329 1338
1339@DEPRECATED("1.13", "Use accel_preference_get() instead.")
1330def engine_get(): 1340def engine_get():
1331 return _ctouni(elm_config_engine_get()) 1341 return _ctouni(elm_config_engine_get())
1342@DEPRECATED("1.13", "Use accel_preference_set() instead.")
1332def engine_set(engine): 1343def engine_set(engine):
1333 if isinstance(engine, unicode): engine = PyUnicode_AsUTF8String(engine) 1344 if isinstance(engine, unicode): engine = PyUnicode_AsUTF8String(engine)
1334 elm_config_engine_set( 1345 elm_config_engine_set(