Bug 808412 - Add "Open Calendar File…" to AppMenu. CLOSED TREE r+a=philipp
authorRichard Marti <richard.marti@gmail.com>
Thu, 08 Nov 2012 18:07:34 +0100
changeset 13544 556615e5c8e72bdc21ec506578c5ec36c3a82396
parent 13541 2658b6a23192c126aa1054cdb142931472c7a22c
child 13545 de4387b45ac23e3554a5755a49444329b9d544c7
push idunknown
push userunknown
push dateunknown
bugs808412
Bug 808412 - Add "Open Calendar File…" to AppMenu. CLOSED TREE r+a=philipp
calendar/lightning/content/lightning-menus.xul
--- a/calendar/lightning/content/lightning-menus.xul
+++ b/calendar/lightning/content/lightning-menus.xul
@@ -447,17 +447,35 @@
     <menuseparator id="appmenu_afterltnNewTask"
                    insertbefore="appmenu_newFolder"
                    observes="appmenu_newFolder"/>
     <menuitem id="appmenu_ltnNewCalendar" label="&lightning.menupopup.new.calendar.label;"
                command="calendar_new_calendar_command"
                observes="calendar_new_calendar_command"
                insertafter="appmenu_newAccountMenuItem"/>
   </menupopup>
-
+  <menupopup id="appmenu_FilePopup">
+    <menu id="appmenu_Open"
+          mode="calendar"
+          label="&lightning.menupopup.open.label;"
+          accesskey="&lightning.menupopup.open.accesskey;"
+          insertbefore="appmenu_openMessageFileMenuitem">
+      <menupopup id="appmenu_OpenPopup">
+        <menuitem id="appmenu_OpenMessageFileMenuitem"
+                  label="&lightning.menupopup.open.message.label;"
+                  accesskey="&lightning.menupopup.open.message.accesskey;"
+                  oncommand="MsgOpenFromFile();"/>
+        <menuitem id="appmenu_OpenCalendarFileMenuitem"
+                  label="&lightning.menupopup.open.calendar.label;"
+                  accesskey="&lightning.menupopup.open.calendar.accesskey;"
+                  oncommand="openLocalCalendar();"/>
+      </menupopup>
+    </menu>
+  </menupopup>
+  <menuitem id="appmenu_openMessageFileMenuitem" hidden="true"/>
   <menupopup id="appmenu_View_Popup">
     <menuseparator id="appmenu_ltnViewMenuSeparator"/>
     <menu id="appmenu_ltnTodayPaneMenu"
           label="&calendar.context.button.label;">
       <menupopup id="appmenu_ltnTodayPaneMenuPopup">
         <menuitem id="appmenu_ltnShowTodayPane-2"
                   label="&todaypane.showTodayPane.label;"
                   type="checkbox"