summaryrefslogtreecommitdiff
path: root/efl/edje/efl.edje_message.pxi
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-08-16 09:54:59 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-08-16 10:11:34 +0300
commitb2af779d7d416df654c690f2de077f5eeb6e72b9 (patch)
tree1ff847124c16fbd1f48603c677ecf43b1e3ebf51 /efl/edje/efl.edje_message.pxi
parent4bd421562d2c2403ef2000ce3d903b991eae7f6e (diff)
Switch enums to use the old system we had previously
This allows us to support Cython 0.23+
Diffstat (limited to 'efl/edje/efl.edje_message.pxi')
-rw-r--r--efl/edje/efl.edje_message.pxi24
1 files changed, 12 insertions, 12 deletions
diff --git a/efl/edje/efl.edje_message.pxi b/efl/edje/efl.edje_message.pxi
index fe45a91..9393382 100644
--- a/efl/edje/efl.edje_message.pxi
+++ b/efl/edje/efl.edje_message.pxi
@@ -345,29 +345,29 @@ cdef Message MessageStringFloatSet_from_ptr(void *msg):
345 345
346cdef Message Message_from_type(Edje_Message_Type type, int id, void *msg): 346cdef Message Message_from_type(Edje_Message_Type type, int id, void *msg):
347 cdef Message m 347 cdef Message m
348 if type == <int>EDJE_MESSAGE_NONE: 348 if type == <int>enums.EDJE_MESSAGE_NONE:
349 return None 349 return None
350 elif type == <int>EDJE_MESSAGE_SIGNAL: 350 elif type == <int>enums.EDJE_MESSAGE_SIGNAL:
351 m = MessageSignal() 351 m = MessageSignal()
352 elif type == <int>EDJE_MESSAGE_STRING: 352 elif type == <int>enums.EDJE_MESSAGE_STRING:
353 m = MessageString_from_ptr(msg) 353 m = MessageString_from_ptr(msg)
354 elif type == <int>EDJE_MESSAGE_INT: 354 elif type == <int>enums.EDJE_MESSAGE_INT:
355 m = MessageInt_from_ptr(msg) 355 m = MessageInt_from_ptr(msg)
356 elif type == <int>EDJE_MESSAGE_FLOAT: 356 elif type == <int>enums.EDJE_MESSAGE_FLOAT:
357 m = MessageFloat_from_ptr(msg) 357 m = MessageFloat_from_ptr(msg)
358 elif type == <int>EDJE_MESSAGE_STRING_SET: 358 elif type == <int>enums.EDJE_MESSAGE_STRING_SET:
359 m = MessageStringSet_from_ptr(msg) 359 m = MessageStringSet_from_ptr(msg)
360 elif type == <int>EDJE_MESSAGE_INT_SET: 360 elif type == <int>enums.EDJE_MESSAGE_INT_SET:
361 m = MessageIntSet_from_ptr(msg) 361 m = MessageIntSet_from_ptr(msg)
362 elif type == <int>EDJE_MESSAGE_FLOAT_SET: 362 elif type == <int>enums.EDJE_MESSAGE_FLOAT_SET:
363 m = MessageFloatSet_from_ptr(msg) 363 m = MessageFloatSet_from_ptr(msg)
364 elif type == <int>EDJE_MESSAGE_STRING_INT: 364 elif type == <int>enums.EDJE_MESSAGE_STRING_INT:
365 m = MessageStringInt_from_ptr(msg) 365 m = MessageStringInt_from_ptr(msg)
366 elif type == <int>EDJE_MESSAGE_STRING_FLOAT: 366 elif type == <int>enums.EDJE_MESSAGE_STRING_FLOAT:
367 m = MessageStringFloat_from_ptr(msg) 367 m = MessageStringFloat_from_ptr(msg)
368 elif type == <int>EDJE_MESSAGE_STRING_INT_SET : 368 elif type == <int>enums.EDJE_MESSAGE_STRING_INT_SET :
369 m = MessageStringIntSet_from_ptr(msg) 369 m = MessageStringIntSet_from_ptr(msg)
370 elif type == <int>EDJE_MESSAGE_STRING_FLOAT_SET : 370 elif type == <int>enums.EDJE_MESSAGE_STRING_FLOAT_SET :
371 m = MessageStringFloatSet_from_ptr(msg) 371 m = MessageStringFloatSet_from_ptr(msg)
372 372
373 m._type = type 373 m._type = type