[Commits] (jed) Disabled the Close Tab menu item when there is only a single tab open until we decide what the full UI should be with a single tab. (Bug#1464)

commits at osafoundation.org commits at osafoundation.org
Thu May 27 14:23:31 PDT 2004


Commit by: jed
Modified files:
chandler/parcels/osaf/views/main/TabbedView.py 1.8 1.9

Log message:
Disabled the Close Tab menu item when there is only a single tab open until we decide what the full UI should be with a single tab.  (Bug#1464)

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/main/TabbedView.py.diff?r1=text&tr1=1.8&r2=text&tr2=1.9

Index: chandler/parcels/osaf/views/main/TabbedView.py
diff -u chandler/parcels/osaf/views/main/TabbedView.py:1.8 chandler/parcels/osaf/views/main/TabbedView.py:1.9
--- chandler/parcels/osaf/views/main/TabbedView.py:1.8	Thu May 20 16:36:44 2004
+++ chandler/parcels/osaf/views/main/TabbedView.py	Thu May 27 14:23:01 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.8 $"
-__date__ = "$Date: 2004/05/20 23:36:44 $"
+__version__ = "$Revision: 1.9 $"
+__date__ = "$Date: 2004/05/27 21:23:01 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -60,7 +60,10 @@
         item = Globals.repository.find(page.blockUUID)
         item.parentBlock = None
         self.synchronizeWidget()
-                                        
+        
+    def OnCloseEventUpdateUI(self, notification):
+        notification.data['Enable'] = (len(self.tabNames) > 1)
+        
     def getUniqueName (self, name):
         if not self.hasChild(name):
             return name



More information about the Commits mailing list