Enlightenment CVS committal
Author : barbieri
Project : e17
Module : proto
Dir : e17/proto/python-efl/python-edje/edje
Modified Files:
edje.c_edje_object.pxi
Log Message:
Fix segfault with python-edje
===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-edje/edje/edje.c_edje_object.pxi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- edje.c_edje_object.pxi 7 Jul 2007 00:42:01 -0000 1.7
+++ edje.c_edje_object.pxi 10 Jul 2007 19:30:56 -0000 1.8
@@ -205,7 +205,12 @@
edje_object_part_text_set(self.obj, part, text)
def part_text_get(self, char *part):
- return edje_object_part_text_get(self.obj, part)
+ cdef char *s
+ s = edje_object_part_text_get(self.obj, part)
+ if s == NULL:
+ return None
+ else:
+ return s
def part_swallow(self, char *part, obj):
cdef evas.c_evas.Object o
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs