summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-06-01 15:37:41 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-06-01 15:37:41 +0300
commit4639836d3e970a2a28de859e1bd000452d9404bc (patch)
tree0e1365bf9234bb26d316e40ec1869fb28cb7a5bd
parent72a9c8ac2d1f11611912a00e777becaf23fdfa2d (diff)
warnings--
-rw-r--r--efl/elementary/configuration.pyx2
-rw-r--r--efl/elementary/genlist_item.pxi12
-rw-r--r--efl/elementary/window.pyx6
-rw-r--r--efl/evas/efl.evas.pyx10
4 files changed, 9 insertions, 21 deletions
diff --git a/efl/elementary/configuration.pyx b/efl/elementary/configuration.pyx
index ed40e15..e3c3b7d 100644
--- a/efl/elementary/configuration.pyx
+++ b/efl/elementary/configuration.pyx
@@ -783,7 +783,7 @@ cdef class Configuration(object):
783 """ 783 """
784 def __get__(self): 784 def __get__(self):
785 cdef: 785 cdef:
786 Eina_List *lst = elm_config_color_overlay_list_get() 786 const Eina_List *lst = elm_config_color_overlay_list_get()
787 Elm_Color_Overlay *ov 787 Elm_Color_Overlay *ov
788 const char *color_class 788 const char *color_class
789 789
diff --git a/efl/elementary/genlist_item.pxi b/efl/elementary/genlist_item.pxi
index 34ef23d..96daebe 100644
--- a/efl/elementary/genlist_item.pxi
+++ b/efl/elementary/genlist_item.pxi
@@ -598,15 +598,9 @@ cdef class GenlistItem(ObjectItem):
598 .. versionadded:: 1.9 598 .. versionadded:: 1.9
599 599
600 """ 600 """
601 cdef: 601 return _object_item_list_to_python(
602 Eina_List *l = elm_genlist_item_subitems_get(self.item) 602 elm_genlist_item_subitems_get(self.item)
603 list ret = list() 603 )
604
605 while l:
606 ret.append(object_from_instance(<Evas_Object*>l.data))
607 l = l.next
608
609 return ret
610 604
611 property expanded: 605 property expanded:
612 """This function flags the item of type #ELM_GENLIST_ITEM_TREE as 606 """This function flags the item of type #ELM_GENLIST_ITEM_TREE as
diff --git a/efl/elementary/window.pyx b/efl/elementary/window.pyx
index 8ec7b44..849bec2 100644
--- a/efl/elementary/window.pyx
+++ b/efl/elementary/window.pyx
@@ -508,7 +508,7 @@ cdef class Window(Object):
508 :return type: Elm_Win_Type 508 :return type: Elm_Win_Type
509 509
510 .. versionadded: 1.9 510 .. versionadded: 1.9
511 511
512 """ 512 """
513 return elm_win_type_get(self.obj) 513 return elm_win_type_get(self.obj)
514 514
@@ -836,7 +836,7 @@ cdef class Window(Object):
836 """ 836 """
837 def __set__(self, list profiles): 837 def __set__(self, list profiles):
838 cdef: 838 cdef:
839 const char **array 839 const char **array = NULL
840 unsigned int arr_len = len(profiles) 840 unsigned int arr_len = len(profiles)
841 unsigned int i 841 unsigned int i
842 842
@@ -862,7 +862,7 @@ cdef class Window(Object):
862 862
863 def available_profiles_set(self, list profiles): 863 def available_profiles_set(self, list profiles):
864 cdef: 864 cdef:
865 const char **array 865 const char **array = NULL
866 unsigned int arr_len = len(profiles) 866 unsigned int arr_len = len(profiles)
867 unsigned int i 867 unsigned int i
868 868
diff --git a/efl/evas/efl.evas.pyx b/efl/evas/efl.evas.pyx
index 7be48df..fa63f8a 100644
--- a/efl/evas/efl.evas.pyx
+++ b/efl/evas/efl.evas.pyx
@@ -16,6 +16,7 @@
16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
17 17
18cimport efl.evas.enums as enums 18cimport efl.evas.enums as enums
19from efl.utils.conversions cimport eina_list_strings_to_python_list
19 20
20EVAS_LAYER_MIN = enums.EVAS_LAYER_MIN 21EVAS_LAYER_MIN = enums.EVAS_LAYER_MIN
21EVAS_LAYER_MAX = enums.EVAS_LAYER_MAX 22EVAS_LAYER_MAX = enums.EVAS_LAYER_MAX
@@ -310,14 +311,7 @@ def font_path_global_list():
310 .. versionadded: 1.10 311 .. versionadded: 1.10
311 312
312 """ 313 """
313 cdef Eina_List *lst = evas_font_path_global_list() 314 return eina_list_strings_to_python_list(evas_font_path_global_list())
314
315 ret = []
316 while lst != NULL:
317 ret.append(<char*> lst.data)
318 lst = lst.next
319
320 return ret
321 315
322 316
323 317