[gnome-documents/gnome-3-6] application: Add F1 accelerator to show help & Ctrl+P to print



commit 5fbfc73e2e65e90eb35d3afb8f128a649e2f0345
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sat Nov 3 22:55:09 2012 -0400

    application: Add F1 accelerator to show help & Ctrl+P to print
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687543

 src/application.js            |    5 +++--
 src/resources/preview-menu.ui |    1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 720c832..dd00a20 100644
--- a/src/application.js
+++ b/src/application.js
@@ -135,7 +135,8 @@ const Application = new Lang.Class({
             { name: 'about',
               callback: this._onActionAbout },
             { name: 'help',
-              callback: this._onActionHelp },
+              callback: this._onActionHelp,
+              accel: 'F1' },
             { name: 'fullscreen',
               callback: this._onActionFullscreen,
               create_hook: this._fullscreenCreateHook,
@@ -150,7 +151,7 @@ const Application = new Lang.Class({
             { name: 'open-current',
               callback: this._onActionOpenCurrent,
               window_mode: WindowMode.WindowMode.PREVIEW },
-            { name: 'print-current',
+            { name: 'print-current', accel: '<Primary>p',
               callback: this._onActionPrintCurrent,
               window_mode: WindowMode.WindowMode.PREVIEW },
             { name: 'search',
diff --git a/src/resources/preview-menu.ui b/src/resources/preview-menu.ui
index d7389e5..9e707c5 100644
--- a/src/resources/preview-menu.ui
+++ b/src/resources/preview-menu.ui
@@ -8,6 +8,7 @@
       <item>
         <attribute name="action">app.print-current</attribute>
         <attribute name="label" translatable="yes">Print...</attribute>
+        <attribute name="accel">&lt;Primary&gt;p</attribute>
       </item>
     </section>
     <section>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]