[glom/gmenu] gmenu: Attempt to specify accelerators



commit 03cc3e651baa776bcc76ee15fa4e98904d683733
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Sep 17 14:11:18 2013 +0200

    gmenu: Attempt to specify accelerators

 glom/appwindow.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index 2ec76e3..b034afb 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -429,10 +429,12 @@ void AppWindow::init_menus()
     "        <item>"
     "          <attribute name='label' translatable='yes'>_New</attribute>"
     "          <attribute name='action'>file.new</attribute>"
+    "          <attribute name='accel'>&lt;Primary&gt;n</attribute>"
     "        </item>"
     "        <item>"
     "          <attribute name='label' translatable='yes'>_Open</attribute>"
     "          <attribute name='action'>file.open</attribute>"
+    "          <attribute name='accel'>&lt;Primary&gt;o</attribute>"
     "        </item>"
 #ifndef GLOM_ENABLE_CLIENT_ONLY
     "        <item>"
@@ -473,6 +475,7 @@ void AppWindow::init_menus()
     "        <item>"
     "          <attribute name='label' translatable='yes'>_Close</attribute>"
     "          <attribute name='action'>file.close</attribute>"
+    "          <attribute name='accel'>&lt;Primary&gt;w</attribute>"
     "        </item>"
     "      </section>"
     "    </submenu>"
@@ -486,10 +489,12 @@ void AppWindow::init_menus()
     "        <item>"
     "          <attribute name='label' translatable='yes'>_Copy</attribute>"
     "          <attribute name='action'>edit.copy</attribute>"
+    "          <attribute name='accel'>&lt;Primary&gt;c</attribute>"
     "        </item>"
     "        <item>"
     "          <attribute name='label' translatable='yes'>_Paste</attribute>"
     "          <attribute name='action'>edit.paste</attribute>"
+    "          <attribute name='accel'>&lt;Primary&gt;v</attribute>"
     "        </item>"
     "        <item>"
     "          <attribute name='label' translatable='yes'>_Clear</attribute>"


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