[POS-commit] CVS: Kiwi/Kiwi List.py,1.67,1.68

Christian Reis kiko at async.com.br
Fri Feb 7 17:43:06 BRDT 2003


Update of /cvs/Kiwi/Kiwi
In directory anthem:/tmp/cvs-serv1729

Modified Files:
	List.py 
Log Message:
Fix dumb typo to make shading work for the simple insert/remove case.


Index: List.py
===================================================================
RCS file: /cvs/Kiwi/Kiwi/List.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- List.py	7 Feb 2003 17:43:25 -0000	1.67
+++ List.py	7 Feb 2003 18:43:04 -0000	1.68
@@ -356,7 +356,7 @@
     if self.pixmap_specs:
         _kiwi_clist_fix_pixmap(obj, self.pixmap_specs, row, values)
     # Yes, sync_shade does this check, but this is speed-critical
-    if self._shading: self._sync_shade
+    if self._shading: self._sync_shade()
     return row
 
 def _kiwi_clist_insert(obj, row, values):
@@ -365,7 +365,7 @@
     if self.pixmap_specs:
         _kiwi_clist_fix_pixmap(obj, self.pixmap_specs, row, values)
     # Yes, sync_shade does this check, but this is speed-critical
-    if self._shading: self._sync_shade
+    if self._shading: self._sync_shade()
     return row
 
 # Looks through the list of pixmap_specs and substitutes values 
@@ -658,6 +658,8 @@
         if color:
             self.bgshade = self.get_colormap().alloc(color)
         if not self.pixmap_specs:
+            # XXX: hack, but works - pixmaps specs OR shading enables
+            # our custom functions
             self._raw_append = _kiwi_clist_append
             self._raw_insert = _kiwi_clist_insert
         self._sync_shade()



More information about the POS-commit mailing list