Bug 515734 - Provide More Entries in the Win7 Jumplist Tasks list. [r=mcsmurf]
authorJustin Wood <Callek@gmail.com>
Tue, 09 Aug 2011 06:02:51 -0400
changeset 8722 3b67c67a2ab0528db52c476ecddb6887c5fab093
parent 8721 34d40a7f678b1ca4c261a9632547064e5074a810
child 8723 34d03378d72b58da2c9185ad774f209bdc081371
push id158
push userbugzilla@standard8.plus.com
push dateTue, 27 Sep 2011 19:18:14 +0000
treeherdercomm-beta@e47b99c61e4d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcsmurf
bugs515734
Bug 515734 - Provide More Entries in the Win7 Jumplist Tasks list. [r=mcsmurf]
suite/locales/en-US/chrome/browser/taskbar.properties
suite/modules/WindowsJumpLists.jsm
--- a/suite/locales/en-US/chrome/browser/taskbar.properties
+++ b/suite/locales/en-US/chrome/browser/taskbar.properties
@@ -1,7 +1,15 @@
 taskbar.tasks.newTab.label=Open new tab
 taskbar.tasks.newTab.description=Open a new browser tab.
 taskbar.tasks.newWindow.label=Open new window
 taskbar.tasks.newWindow.description=Open a new browser window.
+taskbar.tasks.mailWindow.label=Open Mail & Newsgroups
+taskbar.tasks.mailWindow.description=Open the Mail & Newsgroups window.
+taskbar.tasks.composeMessage.label=Compose new message
+taskbar.tasks.composeMessage.description=Compose a new message.
+taskbar.tasks.openAddressBook.label=Open Address Book
+taskbar.tasks.openAddressBook.description=Open your Address Book.
+taskbar.tasks.openEditor.label=Open new Composer page
+taskbar.tasks.openEditor.description=Open a new Composer page.
 taskbar.frequent.label=Frequent
 taskbar.recent.label=Recent
 
--- a/suite/modules/WindowsJumpLists.jsm
+++ b/suite/modules/WindowsJumpLists.jsm
@@ -149,16 +149,60 @@ var tasksCfg = [
     get title()       _getString("taskbar.tasks.newWindow.label"),
     get description() _getString("taskbar.tasks.newWindow.description"),
     args:             "-browser",
     iconIndex:        0, // SeaMonkey app icon
     open:             true,
     close:            true, // No point, but we don't always update the list on
                             //  shutdown.  Thus true for consistency.
   },
+
+  // Open mailnews
+  {
+    get title()       _getString("taskbar.tasks.mailWindow.label"),
+    get description() _getString("taskbar.tasks.mailWindow.description"),
+    args:             "-mail",
+    iconIndex:        0, // SeaMonkey app icon
+    open:             true,
+    close:            true, // No point, but we don't always update the list on
+                            //  shutdown.  Thus true for consistency.
+  },
+
+  // Compose Message
+  {
+    get title()       _getString("taskbar.tasks.composeMessage.label"),
+    get description() _getString("taskbar.tasks.composeMessage.description"),
+    args:             "-compose",
+    iconIndex:        0, // SeaMonkey app icon
+    open:             true,
+    close:            true, // No point, but we don't always update the list on
+                            //  shutdown.  Thus true for consistency.
+  },
+
+  // Address Book
+  {
+    get title()       _getString("taskbar.tasks.openAddressBook.label"),
+    get description() _getString("taskbar.tasks.openAddressBook.description"),
+    args:             "-addressbook",
+    iconIndex:        0, // SeaMonkey app icon
+    open:             true,
+    close:            true, // No point, but we don't always update the list on
+                            //  shutdown.  Thus true for consistency.
+  },
+
+  // Composer
+  {
+    get title()       _getString("taskbar.tasks.openEditor.label"),
+    get description() _getString("taskbar.tasks.openEditor.description"),
+    args:             "-edit",
+    iconIndex:        0, // SeaMonkey app icon
+    open:             true,
+    close:            true, // No point, but we don't always update the list on
+                            //  shutdown.  Thus true for consistency.
+  },
 ];
 
 /////////////////////////////////////////////////////////////////////////////
 // Implementation
 
 var WinTaskbarJumpList =
 {
   _builder: null,