Enlightenment CVS committal Author : barbieri Project : e17 Module : proto
Dir : e17/proto/python-efl/python-edje/edje Modified Files: edje.c_edje.pyx edje.c_edje_object.pxi Log Message: Change callback handle, cannot refer to key since callback emission is different from the one added when it has '*' =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-edje/edje/edje.c_edje.pyx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- edje.c_edje.pyx 6 May 2007 17:48:45 -0000 1.2 +++ edje.c_edje.pyx 8 May 2007 19:03:38 -0000 1.3 @@ -1,4 +1,5 @@ cimport python +import evas.c_evas def init(): return edje_init() =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-edje/edje/edje.c_edje_object.pxi,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- edje.c_edje_object.pxi 6 May 2007 17:48:45 -0000 1.5 +++ edje.c_edje_object.pxi 8 May 2007 19:03:38 -0000 1.6 @@ -22,8 +22,8 @@ cdef void signal_cb(void *data, evas.c_evas.Evas_Object *obj, char *emission, char *source): cdef Edje self - self = <Edje>data - lst = self._signal_callbacks[(emission, source)] + self = <Edje>evas.c_evas._Object_from_instance(<long>obj) + lst = <object>data for func, args, kargs in lst: func(self, emission, source, *args, **kargs) @@ -293,7 +293,7 @@ lst = self._signal_callbacks.setdefault((emission, source), []) if not lst: edje_object_signal_callback_add(self.obj, emission, source, - signal_cb, <void*>self) + signal_cb, <void*>lst) lst.append((func, args, kargs)) def signal_callback_del(self, char *emission, char *source, func): ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs