Enlightenment CVS committal
Author : barbieri
Project : e17
Module : proto/python-efl
Dir : e17/proto/python-efl/python-ecore/ecore/x
Modified Files:
ecore.x.c_ecore_x_window.pxi
Log Message:
Fix way to get the address of python objects.
Cython changed the way casts are interpreted some time ago and
<unsigned long>object is not valid anymore because it would check for
an integer-capable object (ie: __init__()).
Instead we must make it a void pointer (<void *>object) and then cast
this to the integer type.
===================================================================
RCS file:
/cvs/e/e17/proto/python-efl/python-ecore/ecore/x/ecore.x.c_ecore_x_window.pxi,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ecore.x.c_ecore_x_window.pxi 7 Aug 2008 03:13:09 -0000 1.3
+++ ecore.x.c_ecore_x_window.pxi 10 Aug 2008 14:59:12 -0000 1.4
@@ -77,7 +77,7 @@
ecore_x_window_geometry_get(self.xid, &x, &y, &w, &h)
parent = ecore_x_window_parent_get(self.xid)
return "%s(%#x, xid=%#x, parent=%#x, x=%d, y=%d, w=%d, h=%d)" % \
- (self.__class__.__name__, <unsigned long>self,
+ (self.__class__.__name__, <unsigned long><void *>self,
self.xid, parent, x, y, w, h)
def __richcmp__(self, other, int op):
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs