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



commit e2ac207b64be28a1a244055ea632dbc519a18093
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 3a6a16e..4759d9f 100644
--- a/src/application.js
+++ b/src/application.js
@@ -138,7 +138,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,
@@ -153,7 +154,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]