warnings--
This commit is contained in:
parent
6115bcd0ab
commit
878c5f114c
|
@ -783,7 +783,7 @@ cdef class Configuration(object):
|
|||
"""
|
||||
def __get__(self):
|
||||
cdef:
|
||||
Eina_List *lst = elm_config_color_overlay_list_get()
|
||||
const Eina_List *lst = elm_config_color_overlay_list_get()
|
||||
Elm_Color_Overlay *ov
|
||||
const char *color_class
|
||||
|
||||
|
|
|
@ -598,15 +598,9 @@ cdef class GenlistItem(ObjectItem):
|
|||
.. versionadded:: 1.9
|
||||
|
||||
"""
|
||||
cdef:
|
||||
Eina_List *l = elm_genlist_item_subitems_get(self.item)
|
||||
list ret = list()
|
||||
|
||||
while l:
|
||||
ret.append(object_from_instance(<Evas_Object*>l.data))
|
||||
l = l.next
|
||||
|
||||
return ret
|
||||
return _object_item_list_to_python(
|
||||
elm_genlist_item_subitems_get(self.item)
|
||||
)
|
||||
|
||||
property expanded:
|
||||
"""This function flags the item of type #ELM_GENLIST_ITEM_TREE as
|
||||
|
|
|
@ -508,7 +508,7 @@ cdef class Window(Object):
|
|||
:return type: Elm_Win_Type
|
||||
|
||||
.. versionadded: 1.9
|
||||
|
||||
|
||||
"""
|
||||
return elm_win_type_get(self.obj)
|
||||
|
||||
|
@ -836,7 +836,7 @@ cdef class Window(Object):
|
|||
"""
|
||||
def __set__(self, list profiles):
|
||||
cdef:
|
||||
const char **array
|
||||
const char **array = NULL
|
||||
unsigned int arr_len = len(profiles)
|
||||
unsigned int i
|
||||
|
||||
|
@ -862,7 +862,7 @@ cdef class Window(Object):
|
|||
|
||||
def available_profiles_set(self, list profiles):
|
||||
cdef:
|
||||
const char **array
|
||||
const char **array = NULL
|
||||
unsigned int arr_len = len(profiles)
|
||||
unsigned int i
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
cimport efl.evas.enums as enums
|
||||
from efl.utils.conversions cimport eina_list_strings_to_python_list
|
||||
|
||||
EVAS_LAYER_MIN = enums.EVAS_LAYER_MIN
|
||||
EVAS_LAYER_MAX = enums.EVAS_LAYER_MAX
|
||||
|
@ -310,14 +311,7 @@ def font_path_global_list():
|
|||
.. versionadded: 1.10
|
||||
|
||||
"""
|
||||
cdef Eina_List *lst = evas_font_path_global_list()
|
||||
|
||||
ret = []
|
||||
while lst != NULL:
|
||||
ret.append(<char*> lst.data)
|
||||
lst = lst.next
|
||||
|
||||
return ret
|
||||
return eina_list_strings_to_python_list(evas_font_path_global_list())
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue