[Commits] (john) - Eliminated redrawing all rows when selecting a new row

commits at osafoundation.org commits at osafoundation.org
Thu Aug 5 13:43:51 PDT 2004


Commit by: john
Modified files:
chandler/parcels/osaf/framework/blocks/ControlBlocks.py 1.91 1.92

Log message:
- Eliminated redrawing all rows when selecting a new row

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ControlBlocks.py.diff?r1=text&tr1=1.91&r2=text&tr2=1.92

Index: chandler/parcels/osaf/framework/blocks/ControlBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.91 chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.92
--- chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.91	Thu Aug  5 12:24:49 2004
+++ chandler/parcels/osaf/framework/blocks/ControlBlocks.py	Thu Aug  5 13:43:50 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.91 $"
-__date__ = "$Date: 2004/08/05 19:24:49 $"
+__version__ = "$Revision: 1.92 $"
+__date__ = "$Date: 2004/08/05 20:43:50 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -441,12 +441,10 @@
             if self.blockItem.selection != item:
                 self.blockItem.selection = item
 
-                # Redraw headers
+                ## Redraw headers
                 gridTable = self.GetTable()
-                self.BeginBatch()
                 for columnIndex in xrange (gridTable.GetNumberCols()):
                     self.SetColLabelValue (columnIndex, gridTable.GetColLabelValue (columnIndex))
-                self.EndBatch() 
 
             self.blockItem.Post (Globals.repository.findPath ('//parcels/osaf/framework/blocks/Events/SelectionChanged'),
                                                               {'item':item})



More information about the Commits mailing list