[Commits] (alecf) apparently on linxu, we get a wxSynchronizeEvent before the first OnSize(), so just for the size calculation early

commits at osafoundation.org commits at osafoundation.org
Wed Apr 20 12:55:09 PDT 2005


Commit by: alecf
Modified files:
chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 1.73 1.74

Log message:
apparently on linxu, we get a wxSynchronizeEvent before the first OnSize(), so just for the size calculation early


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py.diff?r1=text&tr1=1.73&r2=text&tr2=1.74

Index: chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py
diff -u chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.73 chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.74
--- chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.73	Wed Apr 20 10:25:27 2005
+++ chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	Wed Apr 20 12:55:07 2005
@@ -1,8 +1,8 @@
 """ Canvas for calendaring blocks
 """
 
-__version__ = "$Revision: 1.73 $"
-__date__ = "$Date: 2005/04/20 17:25:27 $"
+__version__ = "$Revision: 1.74 $"
+__date__ = "$Date: 2005/04/20 19:55:07 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -916,6 +916,7 @@
         super (wxWeekHeaderCanvas, self).OnInit()
         
         self.SetMinSize((-1,20))
+        self.size = self.GetSize()
         # Event handlers
         self.Bind(wx.EVT_SIZE, self.OnSize)
                     



More information about the Commits mailing list