[gnome-builder] sourceview+plugins: Add mnemonics for all context menu items



commit cc5c422aaaace471a398ca252d2959994db9d494
Author: vanadiae <vanadiae35 gmail com>
Date:   Tue Jun 29 16:00:11 2021 +0200

    sourceview+plugins: Add mnemonics for all context menu items
    
    This only covers the right click/menu key context menu, not the frame
    header menu or anything else.

 src/libide/sourceview/gtk/menus.ui    | 14 +++++++-------
 src/plugins/beautifier/gtk/menus.ui   |  2 +-
 src/plugins/color-picker/gtk/menus.ui |  2 +-
 src/plugins/comment-code/gtk/menus.ui |  4 ++--
 src/plugins/ls/gtk/menus.ui           |  6 +++---
 src/plugins/project-tree/gtk/menus.ui |  2 +-
 src/plugins/retab/gtk/menus.ui        |  2 +-
 src/plugins/spellcheck/gtk/menus.ui   |  3 +--
 8 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/src/libide/sourceview/gtk/menus.ui b/src/libide/sourceview/gtk/menus.ui
index d93dcffa1..7b122b04c 100644
--- a/src/libide/sourceview/gtk/menus.ui
+++ b/src/libide/sourceview/gtk/menus.ui
@@ -47,12 +47,12 @@
     </section>
     <section id="ide-source-view-popup-menu-highlighting-section">
       <submenu id="ide-source-view-popup-menu-highlighting-submenu">
-        <attribute name="label" translatable="yes">Highlighting</attribute>
+        <attribute name="label" translatable="yes">_Highlighting</attribute>
       </submenu>
     </section>
     <section id="ide-source-view-popup-menu-selection-section">
       <submenu id="ide-source-view-popup-menu-selection-submenu">
-        <attribute name="label" translatable="yes">Selection</attribute>
+        <attribute name="label" translatable="yes">_Selection</attribute>
         <item>
           <attribute name="label" translatable="yes">Select _All</attribute>
           <attribute name="action">sourceview.select-all</attribute>
@@ -75,7 +75,7 @@
             <attribute name="target" type="(u)">(0,)</attribute>
           </item>
           <item>
-            <attribute name="label" translatable="yes">_Invert Case</attribute>
+            <attribute name="label" translatable="yes">In_vert Case</attribute>
             <attribute name="action">sourceview.change-case</attribute>
             <attribute name="target" type="(u)">(2,)</attribute>
           </item>
@@ -87,11 +87,11 @@
         </section>
         <section id="ide-source-view-popup-menu-line-section">
           <item>
-            <attribute name="label" translatable="yes">Join Lines</attribute>
+            <attribute name="label" translatable="yes">_Join Lines</attribute>
             <attribute name="action">sourceview.join-lines</attribute>
           </item>
           <item>
-            <attribute name="label" translatable="yes">Sort Lines</attribute>
+            <attribute name="label" translatable="yes">S_ort Lines</attribute>
             <attribute name="action">sourceview.sort</attribute>
             <attribute name="target" type="(bb)">(false,false)</attribute>
           </item>
@@ -100,7 +100,7 @@
     </section>
     <section id="ide-source-view-popup-menu-zoom-section">
       <submenu id="ide-source-view-popup-menu-zoom-section-submenu">
-        <attribute name="label" translatable="yes">Zoom</attribute>
+        <attribute name="label" translatable="yes">_Zoom</attribute>
         <item>
           <attribute name="label" translatable="yes">Zoom _In</attribute>
           <attribute name="action">sourceview.increase-font-size</attribute>
@@ -113,7 +113,7 @@
         </item>
         <section id="ide-source-view-popup-menu-zoom-section-submenu-reset">
           <item>
-            <attribute name="label" translatable="yes">Reset</attribute>
+            <attribute name="label" translatable="yes">_Reset</attribute>
             <attribute name="action">sourceview.reset-font-size</attribute>
             <attribute name="accel">&lt;control&gt;0</attribute>
           </item>
diff --git a/src/plugins/beautifier/gtk/menus.ui b/src/plugins/beautifier/gtk/menus.ui
index 1f6fc9e33..a6c85cf44 100644
--- a/src/plugins/beautifier/gtk/menus.ui
+++ b/src/plugins/beautifier/gtk/menus.ui
@@ -6,7 +6,7 @@
         <section id="gb-beautify-section">
           <attribute name="after">ide-source-view-popup-menu-line-section</attribute>
           <submenu id="gb-beautify-submenu">
-            <attribute name="label" translatable="yes">Beautify</attribute>
+            <attribute name="label" translatable="yes">_Beautify</attribute>
             <section id="gb-beautify-default-section">
             </section>
             <section id="gb-beautify-profiles-section">
diff --git a/src/plugins/color-picker/gtk/menus.ui b/src/plugins/color-picker/gtk/menus.ui
index 022d99e62..597698624 100644
--- a/src/plugins/color-picker/gtk/menus.ui
+++ b/src/plugins/color-picker/gtk/menus.ui
@@ -4,7 +4,7 @@
     <section id="ide-source-view-popup-menu-highlighting-section">
       <submenu id="ide-source-view-popup-menu-highlighting-submenu">
         <item>
-          <attribute name="label" translatable="yes">Highlight colors</attribute>
+          <attribute name="label" translatable="yes">Highlight _colors</attribute>
           <attribute name="action">color-picker.enabled</attribute>
           <attribute name="role">check</attribute>
         </item>
diff --git a/src/plugins/comment-code/gtk/menus.ui b/src/plugins/comment-code/gtk/menus.ui
index 7069386b8..8a80177bd 100644
--- a/src/plugins/comment-code/gtk/menus.ui
+++ b/src/plugins/comment-code/gtk/menus.ui
@@ -6,12 +6,12 @@
         <section id="ide-source-view-popup-menu-selection-comment-code-section">
           <attribute name="after">ide-source-view-popup-menu-line-section</attribute>
           <item>
-            <attribute name="label" translatable="yes">Comment code</attribute>
+            <attribute name="label" translatable="yes">_Comment code</attribute>
             <attribute name="action">comment-code.comment-code</attribute>
             <attribute name="target" type="s">'0'</attribute>
           </item>
           <item>
-            <attribute name="label" translatable="yes">Uncomment code</attribute>
+            <attribute name="label" translatable="yes">Unco_mment code</attribute>
             <attribute name="action">comment-code.comment-code</attribute>
             <attribute name="target" type="s">'1'</attribute>
           </item>
diff --git a/src/plugins/ls/gtk/menus.ui b/src/plugins/ls/gtk/menus.ui
index e9c61fc2e..37d28eebf 100644
--- a/src/plugins/ls/gtk/menus.ui
+++ b/src/plugins/ls/gtk/menus.ui
@@ -5,7 +5,7 @@
       <item>
         <attribute name="id">project-tree-menu-open-editor</attribute>
         <attribute name="hidden-when">action-disabled</attribute>
-        <attribute name="label" translatable="yes">Browse Folder</attribute>
+        <attribute name="label" translatable="yes">_Browse Folder</attribute>
         <attribute name="action">project-tree.open-with-hint</attribute>
         <attribute name="target" type="s">'ls'</attribute>
       </item>
@@ -15,12 +15,12 @@
     <section id="ide-source-view-popup-menu-files-section">
       <item>
         <attribute name="id">source-view-open-directory</attribute>
-        <attribute name="label" translatable="yes">Switch to Folder</attribute>
+        <attribute name="label" translatable="yes">S_witch to Folder</attribute>
         <attribute name="action">ls.open-directory</attribute>
       </item>
       <item>
         <attribute name="id">source-view-open-in-files</attribute>
-        <attribute name="label" translatable="yes">Open Containing Folder</attribute>
+        <attribute name="label" translatable="yes">_Open Containing Folder</attribute>
         <attribute name="action">ls.open-in-files</attribute>
       </item>
     </section>
diff --git a/src/plugins/project-tree/gtk/menus.ui b/src/plugins/project-tree/gtk/menus.ui
index 61f32b67f..81ed95478 100644
--- a/src/plugins/project-tree/gtk/menus.ui
+++ b/src/plugins/project-tree/gtk/menus.ui
@@ -93,7 +93,7 @@
   <menu id="ide-source-view-popup-menu">
     <section id="ide-source-view-popup-menu-files-section">
       <item>
-        <attribute name="label" translatable="yes">Reveal in Project Tree</attribute>
+        <attribute name="label" translatable="yes">Reveal in Project _Tree</attribute>
         <attribute name="action">project-tree.reveal</attribute>
       </item>
     </section>
diff --git a/src/plugins/retab/gtk/menus.ui b/src/plugins/retab/gtk/menus.ui
index 57045b476..2eacfae68 100644
--- a/src/plugins/retab/gtk/menus.ui
+++ b/src/plugins/retab/gtk/menus.ui
@@ -6,7 +6,7 @@
         <section id="ide-source-view-popup-menu-selection-retab-section">
           <attribute name="after">ide-source-view-popup-menu-line-section</attribute>
           <item>
-            <attribute name="label" translatable="yes">Reformat tabs</attribute>
+            <attribute name="label" translatable="yes">_Reformat tabs</attribute>
             <attribute name="action">editor-view.retab</attribute>
           </item>
         </section>
diff --git a/src/plugins/spellcheck/gtk/menus.ui b/src/plugins/spellcheck/gtk/menus.ui
index 18a0a0a6a..a337ee92d 100644
--- a/src/plugins/spellcheck/gtk/menus.ui
+++ b/src/plugins/spellcheck/gtk/menus.ui
@@ -9,9 +9,8 @@
     </section>
     <section id="ide-source-view-popup-menu-highlighting-section">
       <submenu id="ide-source-view-popup-menu-highlighting-submenu">
-        <attribute name="label" translatable="yes">Highlighting</attribute>
         <item>
-          <attribute name="label" translatable="yes">Underline misspelled words</attribute>
+          <attribute name="label" translatable="yes">_Underline misspelled words</attribute>
           <attribute name="action">spellcheck.enabled</attribute>
         </item>
       </submenu>


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