summaryrefslogtreecommitdiff
path: root/efl/edje/efl.edje_object.pxi
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-04 22:02:09 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-04 22:02:09 +0100
commit3ebc6f21e9f206a079f874bc8183f23d84c03c35 (patch)
treec787936ced1fa134153dae56ce6d8b992ba5d852 /efl/edje/efl.edje_object.pxi
parent419405e456c3b774ea726d199dbef07ac734a11b (diff)
New style enums for edje
Diffstat (limited to '')
-rw-r--r--efl/edje/efl.edje_object.pxi12
1 files changed, 6 insertions, 6 deletions
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index 1f8fdb7..b8ff7b2 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -810,19 +810,19 @@ cdef class Edje(Object):
810 810
811 p.name = c_param 811 p.name = c_param
812 p.type = edje_object_part_external_param_type_get(self.obj, c_part, c_param) 812 p.type = edje_object_part_external_param_type_get(self.obj, c_part, c_param)
813 if p.type >= EDJE_EXTERNAL_PARAM_TYPE_MAX: 813 if p.type >= <int>EDJE_EXTERNAL_PARAM_TYPE_MAX:
814 return None 814 return None
815 815
816 if not edje_object_part_external_param_get(self.obj, c_part, &p): 816 if not edje_object_part_external_param_get(self.obj, c_part, &p):
817 return None 817 return None
818 if p.type == EDJE_EXTERNAL_PARAM_TYPE_BOOL: 818 if p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_BOOL:
819 return bool(p.i) 819 return bool(p.i)
820 elif p.type == EDJE_EXTERNAL_PARAM_TYPE_INT: 820 elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_INT:
821 return p.i 821 return p.i
822 elif p.type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE: 822 elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
823 return p.d 823 return p.d
824 elif p.type == EDJE_EXTERNAL_PARAM_TYPE_STRING or \ 824 elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_STRING or \
825 p.type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE: 825 p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
826 return _ctouni(p.s) 826 return _ctouni(p.s)
827 827
828 def part_box_append(self, part, Object obj): 828 def part_box_append(self, part, Object obj):