[Commits] (morgen) Fix for bug 2676 (Switch to All view when adding
a new item via File menu), r=john
commits at osafoundation.org
commits at osafoundation.org
Wed Mar 16 16:54:31 PST 2005
Commit by: morgen
Modified files:
chandler/parcels/osaf/views/main/Main.py 1.155 1.156
chandler/parcels/osaf/views/main/parcel.xml 1.191 1.192
Log message:
Fix for bug 2676 (Switch to All view when adding a new item via File menu), r=john
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/main/Main.py.diff?r1=text&tr1=1.155&r2=text&tr2=1.156
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/views/main/parcel.xml.diff?r1=text&tr1=1.191&r2=text&tr2=1.192
Index: chandler/parcels/osaf/views/main/Main.py
diff -u chandler/parcels/osaf/views/main/Main.py:1.155 chandler/parcels/osaf/views/main/Main.py:1.156
--- chandler/parcels/osaf/views/main/Main.py:1.155 Tue Mar 15 17:29:35 2005
+++ chandler/parcels/osaf/views/main/Main.py Wed Mar 16 16:54:30 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.155 $"
-__date__ = "$Date: 2005/03/16 01:29:35 $"
+__version__ = "$Revision: 1.156 $"
+__date__ = "$Date: 2005/03/17 00:54:30 $"
__copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -123,6 +123,9 @@
# Tell the sidebar we want to go to the All collection
self.postEventByName ('RequestSelectSidebarItem', {'itemName':u"All"})
+ # Switch to the All view
+ self.postEventByName ('ApplicationBarAll', { })
+
# Tell the ActiveView to select our new item
self.postEventByName ('SelectItemBroadcastInsideActiveView', {'item':newItem})
Index: chandler/parcels/osaf/views/main/parcel.xml
diff -u chandler/parcels/osaf/views/main/parcel.xml:1.191 chandler/parcels/osaf/views/main/parcel.xml:1.192
--- chandler/parcels/osaf/views/main/parcel.xml:1.191 Wed Mar 16 12:38:40 2005
+++ chandler/parcels/osaf/views/main/parcel.xml Wed Mar 16 16:54:30 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.191 $ -->
-<!-- $Date: 2005/03/16 20:38:40 $ -->
+<!-- $Revision: 1.192 $ -->
+<!-- $Date: 2005/03/17 00:54:30 $ -->
<!-- Copyright (c) 2003-2004 Open Source Applications Foundation -->
<!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
@@ -1218,6 +1218,7 @@
<eventsForNamedDispatch itemref="doc:AddToSidebarWithoutCopyingOrCommiting"/>
<eventsForNamedDispatch itemref="doc:AddToSidebarWithoutCopyingAndSelectFirst"/>
<eventsForNamedDispatch itemref="doc:ApplicationBarEvent"/>
+ <eventsForNamedDispatch itemref="doc:ApplicationBarAll"/>
<orientationEnum>Vertical</orientationEnum>
<size>1024,720</size>
More information about the Commits
mailing list