Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : proto/python-efl

Dir     : e17/proto/python-efl/python-ecore/ecore


Modified Files:
        ecore.c_ecore_animator.pxi ecore.c_ecore_fd_handler.pxi 
        ecore.c_ecore_idle_enterer.pxi ecore.c_ecore_idle_exiter.pxi 
        ecore.c_ecore_idler.pxi ecore.c_ecore_timer.pxi 


Log Message:
Handler errors nicely: avoid taking references when them occur.

===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_animator.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_animator.pxi  1 Oct 2007 04:34:47 -0000       1.6
+++ ecore.c_ecore_animator.pxi  30 Oct 2007 21:57:48 -0000      1.7
@@ -47,7 +47,8 @@
         self.kargs = kargs
         if self.obj == NULL:
             self.obj = ecore_animator_add(animator_cb, <void *>self)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         return "%s(func=%s, args=%s, kargs=%s)" % \
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_fd_handler.pxi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore.c_ecore_fd_handler.pxi        1 Oct 2007 04:34:47 -0000       1.7
+++ ecore.c_ecore_fd_handler.pxi        30 Oct 2007 21:57:48 -0000      1.8
@@ -80,7 +80,8 @@
                                                  <Ecore_Fd_Handler_Flags>flags,
                                                  fd_handler_cb, <void *>self,
                                                  NULL, NULL)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         if self.obj == NULL:
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idle_enterer.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_idle_enterer.pxi      1 Oct 2007 04:34:47 -0000       1.6
+++ ecore.c_ecore_idle_enterer.pxi      30 Oct 2007 21:57:48 -0000      1.7
@@ -47,7 +47,8 @@
         self.kargs = kargs
         if self.obj == NULL:
             self.obj = ecore_idle_enterer_add(idle_enterer_cb, <void *>self)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         return "%s(func=%s, args=%s, kargs=%s)" % \
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idle_exiter.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_idle_exiter.pxi       1 Oct 2007 04:34:47 -0000       1.6
+++ ecore.c_ecore_idle_exiter.pxi       30 Oct 2007 21:57:48 -0000      1.7
@@ -45,7 +45,8 @@
         self.kargs = kargs
         if self.obj == NULL:
             self.obj = ecore_idle_exiter_add(idle_exiter_cb, <void *>self)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         return "%s(func=%s, args=%s, kargs=%s)" % \
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idler.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_idler.pxi     1 Oct 2007 04:34:47 -0000       1.6
+++ ecore.c_ecore_idler.pxi     30 Oct 2007 21:57:48 -0000      1.7
@@ -45,7 +45,8 @@
         self.kargs = kargs
         if self.obj == NULL:
             self.obj = ecore_idler_add(idler_cb, <void *>self)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         return "%s(func=%s, args=%s, kargs=%s)" % \
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_timer.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_timer.pxi     1 Oct 2007 04:34:47 -0000       1.6
+++ ecore.c_ecore_timer.pxi     30 Oct 2007 21:57:48 -0000      1.7
@@ -47,7 +47,8 @@
         self.kargs = kargs
         if self.obj == NULL:
             self.obj = ecore_timer_add(interval, timer_cb, <void *>self)
-            python.Py_INCREF(self)
+            if self.obj != NULL:
+                python.Py_INCREF(self)
 
     def __str__(self):
         return "%s(interval=%f, func=%s, args=%s, kargs=%s)" % \



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to