davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=3c20338884f40eca42bf45070d3694fd1583c180
commit 3c20338884f40eca42bf45070d3694fd1583c180 Author: Dave Andreoli <d...@gurumeditation.it> Date: Tue Oct 6 20:39:51 2015 +0200 new 1.16 API: Index.standard_priority and IndexItem.priority --- efl/elementary/index.pxi | 40 ++++++++++++++++++++++++++++++++++++++++ efl/elementary/index_cdef.pxi | 3 +++ 2 files changed, 43 insertions(+) diff --git a/efl/elementary/index.pxi b/efl/elementary/index.pxi index fdcdb4e..d9aebd7 100644 --- a/efl/elementary/index.pxi +++ b/efl/elementary/index.pxi @@ -281,6 +281,26 @@ cdef class IndexItem(ObjectItem): def letter_get(self): return _ctouni(elm_index_item_letter_get(self.item)) + property priority: + """The priority of an item. + + The priority is -1 by default, which means that the item doesn't belong + to a group. The value of the priority starts from 0. + In elm_index_level_go, the items are sorted in ascending order according + to priority. Items of the same priority make a group and the primary + group is shown by default. + + :type: int + + ..versionadded:: 1.16 + + """ + def __set__(self, int value): + elm_index_item_priority_set(self.item, value) + + def priority_set(self, int value): + elm_index_item_priority_set(self.item, value) + cdef class Index(LayoutClass): """ @@ -466,6 +486,26 @@ cdef class Index(LayoutClass): def horizontal_get(self): return bool(elm_index_horizontal_get(self.obj)) + property standard_priority: + """Control standard_priority group of index. + + Priority group will be shown as many items as it can, and other group + will be shown one character only. + + :type: int + + ..versionadded:: 1.16 + + """ + def __get__(self): + return elm_index_standard_priority_get(self.obj) + def __set__(self, int value): + elm_index_standard_priority_set(self.obj, value) + + def standard_priority_set(self, int value): + elm_index_standard_priority_set(self.obj, value) + def standard_priority_get(self): + return elm_index_standard_priority_get(self.obj) property delay_change_time: """Delay change time for index object. diff --git a/efl/elementary/index_cdef.pxi b/efl/elementary/index_cdef.pxi index f525ea2..07c5caa 100644 --- a/efl/elementary/index_cdef.pxi +++ b/efl/elementary/index_cdef.pxi @@ -23,3 +23,6 @@ cdef extern from "Elementary.h": double elm_index_delay_change_time_get(const Evas_Object *obj) void elm_index_omit_enabled_set(Evas_Object *obj, Eina_Bool enabled) Eina_Bool elm_index_omit_enabled_get(const Evas_Object *obj) + void elm_index_standard_priority_set(Evas_Object *obj, int priority) + int elm_index_standard_priority_get(Evas_Object *obj) + void elm_index_item_priority_set(Elm_Object_Item *item, int priority) --