[Commits] (jed) Fixed Bug#1611 (couldn't repeatedly close tabs).

commits at osafoundation.org commits at osafoundation.org
Mon Jul 19 16:23:45 PDT 2004


Commit by: jed
Modified files:
chandler/parcels/osaf/framework/blocks/ContainerBlocks.py 1.117 1.118
chandler/parcels/osaf/views/main/TabbedView.py 1.17 1.18

Log message:
Fixed Bug#1611 (couldn't repeatedly close tabs).

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ContainerBlocks.py.diff?r1=text&tr1=1.117&r2=text&tr2=1.118
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/main/TabbedView.py.diff?r1=text&tr1=1.17&r2=text&tr2=1.18

Index: chandler/parcels/osaf/framework/blocks/ContainerBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.117 chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.118
--- chandler/parcels/osaf/framework/blocks/ContainerBlocks.py:1.117	Mon Jul 19 13:12:23 2004
+++ chandler/parcels/osaf/framework/blocks/ContainerBlocks.py	Mon Jul 19 16:23:43 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.117 $"
-__date__ = "$Date: 2004/07/19 20:12:23 $"
+__version__ = "$Revision: 1.118 $"
+__date__ = "$Date: 2004/07/19 23:23:43 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -358,6 +358,8 @@
             self.AddPage (child.widget, self.blockItem.tabNames[index])
             index += 1
         self.SetSelection(self.selectedTab)
+        page = self.GetPage(self.selectedTab)
+        Globals.mainView.onSetActiveView(page.blockItem) 
         self.Thaw()
         
 

Index: chandler/parcels/osaf/views/main/TabbedView.py
diff -u chandler/parcels/osaf/views/main/TabbedView.py:1.17 chandler/parcels/osaf/views/main/TabbedView.py:1.18
--- chandler/parcels/osaf/views/main/TabbedView.py:1.17	Tue Jul  6 16:22:36 2004
+++ chandler/parcels/osaf/views/main/TabbedView.py	Mon Jul 19 16:23:44 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.17 $"
-__date__ = "$Date: 2004/07/06 23:22:36 $"
+__version__ = "$Revision: 1.18 $"
+__date__ = "$Date: 2004/07/19 23:23:44 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -35,7 +35,6 @@
                 self.childrenBlocks.placeItem(item, previousChild)
                 item.render()                
                 item.widget.SetSize (self.widget.GetClientSize())                
-            Globals.mainView.onSetActiveView(item)
             self.synchronizeWidget()
 
     def onNewEvent (self, notification):
@@ -52,7 +51,6 @@
 
     def onCloseEvent (self, notification):
         "Close the current tab"
-
         selection = self.widget.GetSelection()
         self.tabNames.remove(self.tabNames[selection])
         page = self.widget.GetPage(selection)



More information about the Commits mailing list