[gnome-builder] menus: update menus across the app for shortcuts window



commit f7d52bbebb81960ef51587a36eab85cf63838087
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 29 16:59:01 2022 -0700

    menus: update menus across the app for shortcuts window
    
    This sets some page/group attributes on sections so that we get the items
    looking somewhat reasonable in our dynamically generated shortcuts window.

 src/libide/editor/gtk/menus.ui        | 33 ++++++++++--
 src/libide/greeter/gtk/menus.ui       |  2 +
 src/libide/gui/gtk/menus.ui           | 28 ++++++++--
 src/libide/sourceview/gtk/menus.ui    | 29 ++++++++++-
 src/libide/terminal/gtk/menus.ui      | 26 +++-------
 src/plugins/buildui/gtk/menus.ui      | 37 +++++++++++---
 src/plugins/comment-code/gtk/menus.ui |  8 ++-
 src/plugins/editorui/gtk/menus.ui     |  3 ++
 src/plugins/menu-search/gtk/menus.ui  | 96 +++++++++++++++++++++--------------
 src/plugins/symbol-tree/gtk/menus.ui  | 18 ++++---
 src/plugins/sysprof/gtk/menus.ui      |  4 ++
 src/plugins/terminal/gtk/menus.ui     |  6 +--
 src/plugins/web-browser/gtk/menus.ui  | 25 +++++++++
 13 files changed, 228 insertions(+), 87 deletions(-)
---
diff --git a/src/libide/editor/gtk/menus.ui b/src/libide/editor/gtk/menus.ui
index 0f526cc7c..fb9ce4e95 100644
--- a/src/libide/editor/gtk/menus.ui
+++ b/src/libide/editor/gtk/menus.ui
@@ -11,6 +11,8 @@
     <section id="ide-editor-workspace-menu-placeholder2"/>
     <section id="ide-editor-workspace-menu-open-section">
       <attribute name="id">ide-editor-workspace-menu-open-section</attribute>
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="id">ide-editor-workspace-menu-open</attribute>
         <attribute name="label" translatable="yes">Open File…</attribute>
@@ -22,6 +24,8 @@
     </section>
     <section id="ide-editor-workspace-menu-app-section">
       <attribute name="id">ide-editor-workspace-menu-app-section</attribute>
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="id">ide-editor-workspace-menu-preferences</attribute>
         <attribute name="label" translatable="yes">Preferences</attribute>
@@ -48,6 +52,8 @@
     </section>
     <section id="ide-editor-workspace-menu-quit-section">
       <attribute name="id">ide-editor-workspace-menu-quit-section</attribute>
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="id">ide-editor-workspace-menu-quit</attribute>
         <attribute name="label" translatable="yes">_Quit</attribute>
@@ -58,12 +64,29 @@
   <menu id="ide-editor-page-menu">
     <section id="ide-editor-page-document-section">
       <attribute name="label" translatable="yes">Document</attribute>
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Pages</attribute>
+    </section>
+    <section id="ide-editor-page-preview-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Pages</attribute>
     </section>
-    <section id="ide-editor-page-preview-section"/>
     <section id="ide-editor-page-reveal-section"/>
-    <section id="ide-editor-page-search-section"/>
-    <section id="ide-editor-page-save-section"/>
-    <section id="ide-editor-page-format-section"/>
-    <section id="ide-editor-page-print-section"/>
+    <section id="ide-editor-page-search-section">
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Search &amp; Replace</attribute>
+    </section>
+    <section id="ide-editor-page-save-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Documents</attribute>
+    </section>
+    <section id="ide-editor-page-format-section">
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Selection</attribute>
+    </section>
+    <section id="ide-editor-page-print-section">
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Printing</attribute>
+    </section>
   </menu>
 </interface>
diff --git a/src/libide/greeter/gtk/menus.ui b/src/libide/greeter/gtk/menus.ui
index 8bfb5b274..54554b26d 100644
--- a/src/libide/greeter/gtk/menus.ui
+++ b/src/libide/greeter/gtk/menus.ui
@@ -22,6 +22,8 @@
       </item>
     </section>
     <section id="ide-greeter-workspace-menu-app">
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="id">ide-greeter-workspace-menu-preferences</attribute>
         <attribute name="label" translatable="yes">Preferences</attribute>
diff --git a/src/libide/gui/gtk/menus.ui b/src/libide/gui/gtk/menus.ui
index a2faf0c12..5b41e5c9a 100644
--- a/src/libide/gui/gtk/menus.ui
+++ b/src/libide/gui/gtk/menus.ui
@@ -19,6 +19,8 @@
     <section id="ide-primary-workspace-menu-placeholder2"/>
     <section id="ide-primary-workspace-menu-placeholder3"/>
     <section id="ide-primary-workspace-menu-app-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Application</attribute>
       <item>
         <attribute name="id">ide-primary-workspace-menu-preferences</attribute>
         <attribute name="label" translatable="yes">Preferences</attribute>
@@ -34,33 +36,51 @@
         <attribute name="action">workspace.show-help-overlay</attribute>
         <attribute name="accel">&lt;primary&gt;question</attribute>
         <attribute name="verb-icon">preferences-desktop-keyboard-shortcuts-symbolic</attribute>
+        <attribute name="group" translatable="yes">Help</attribute>
       </item>
       <item>
         <attribute name="id">ide-primary-workspace-menu-help</attribute>
         <attribute name="label" translatable="yes">Help</attribute>
         <attribute name="action">app.help</attribute>
         <attribute name="accel">F1</attribute>
+        <attribute name="group" translatable="yes">Help</attribute>
       </item>
       <item>
         <attribute name="id">ide-primary-workspace-menu-about</attribute>
         <attribute name="label" translatable="yes">About Builder</attribute>
         <attribute name="action">app.about</attribute>
         <attribute name="description" translatable="yes">Show information about Builder</attribute>
+        <attribute name="group" translatable="yes">Help</attribute>
       </item>
     </section>
     <section id="ide-primary-workspace-menu-quit-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Application</attribute>
       <item>
         <attribute name="id">ide-primary-workspace-menu-quit</attribute>
         <attribute name="label" translatable="yes">_Quit</attribute>
         <attribute name="action">app.quit</attribute>
+        <attribute name="accel">&lt;control&gt;q</attribute>
       </item>
     </section>
   </menu>
   <menu id="new-document-menu">
-    <section id="new-document-section"/>
-    <section id="open-document-section"/>
-    <section id="new-browser-section"/>
-    <section id="new-terminal-section"/>
+    <section id="new-document-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Documents</attribute>
+    </section>
+    <section id="open-document-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Documents</attribute>
+    </section>
+    <section id="new-browser-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Web Browsing</attribute>
+    </section>
+    <section id="new-terminal-section">
+      <attribute name="page" translatable="yes">Terminal</attribute>
+      <attribute name="group" translatable="yes">New Terminals</attribute>
+    </section>
   </menu>
 </interface>
 
diff --git a/src/libide/sourceview/gtk/menus.ui b/src/libide/sourceview/gtk/menus.ui
index bb540f58d..728a80613 100644
--- a/src/libide/sourceview/gtk/menus.ui
+++ b/src/libide/sourceview/gtk/menus.ui
@@ -3,25 +3,32 @@
   <menu id="ide-source-view-popup-menu">
     <section id="ide-source-view-popup-menu-clipboard-section">
       <attribute name="display-hint">inline-buttons</attribute>
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Clipboard</attribute>
       <item>
         <attribute name="verb-icon" type="s">'edit-cut-symbolic'</attribute>
         <attribute name="label" translatable="yes">C_ut</attribute>
         <attribute name="action">clipboard.cut</attribute>
+        <attribute name="accel">&lt;control&gt;x</attribute>
       </item>
       <item>
         <attribute name="verb-icon" type="s">'edit-copy-symbolic'</attribute>
         <attribute name="label" translatable="yes">_Copy</attribute>
         <attribute name="action">clipboard.copy</attribute>
+        <attribute name="accel">&lt;control&gt;c</attribute>
       </item>
       <item>
         <attribute name="verb-icon" type="s">'edit-paste-symbolic'</attribute>
         <attribute name="label" translatable="yes">_Paste</attribute>
         <attribute name="action">clipboard.paste</attribute>
+        <attribute name="accel">&lt;control&gt;v</attribute>
       </item>
     </section>
     <section id="ide-source-view-popup-menu-undo-section">
       <attribute name="display-hint">inline-buttons</attribute>
       <attribute name="label" translatable="yes">Undo</attribute>
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Undo &amp; Redo</attribute>
       <item>
         <attribute name="label" translatable="yes">Undo</attribute>
         <attribute name="action">text.undo</attribute>
@@ -36,6 +43,8 @@
     <section id="ide-source-view-popup-menu-zoom-section">
       <attribute name="label" translatable="yes">Zoom</attribute>
       <attribute name="display-hint">inline-buttons</attribute>
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Zoom</attribute>
       <item>
         <attribute name="label" translatable="yes">Zoom Out</attribute>
         <attribute name="verb-icon">zoom-out-symbolic</attribute>
@@ -58,37 +67,47 @@
     <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="page" translatable="yes">Text Editor</attribute>
+        <attribute name="group" translatable="yes">Selection</attribute>
         <item>
           <attribute name="label" translatable="yes">Select _All</attribute>
           <attribute name="action">selection.select-all</attribute>
           <attribute name="accel">&lt;control&gt;a</attribute>
         </item>
         <section id="ide-source-view-popup-menu-case-section">
+          <attribute name="page" translatable="yes">Text Editor</attribute>
+          <attribute name="group" translatable="yes">Formatting</attribute>
           <item>
             <attribute name="label" translatable="yes">All _Upper Case</attribute>
+            <attribute name="description" translatable="yes">Convert the text selection to upper 
case</attribute>
             <attribute name="action">source.change-case</attribute>
             <attribute name="target" type="s">'upper'</attribute>
             <attribute name="accel">&lt;control&gt;u</attribute>
           </item>
           <item>
             <attribute name="label" translatable="yes">All _Lower Case</attribute>
+            <attribute name="description" translatable="yes">Convert the text selection to lower 
case</attribute>
             <attribute name="action">source.change-case</attribute>
             <attribute name="target" type="s">'lower'</attribute>
             <attribute name="accel">&lt;control&gt;l</attribute>
           </item>
           <item>
             <attribute name="label" translatable="yes">In_vert Case</attribute>
+            <attribute name="description" translatable="yes">Invert case of the text selection</attribute>
             <attribute name="action">source.change-case</attribute>
             <attribute name="target" type="s">'toggle'</attribute>
             <attribute name="accel">&lt;control&gt;asciitilde</attribute>
           </item>
           <item>
             <attribute name="label" translatable="yes">_Title Case</attribute>
+            <attribute name="description" translatable="yes">Convert the text selection to title 
case</attribute>
             <attribute name="action">source.change-case</attribute>
             <attribute name="target" type="s">'title'</attribute>
           </item>
         </section>
         <section id="ide-source-view-popup-menu-line-section">
+          <attribute name="page" translatable="yes">Text Editor</attribute>
+          <attribute name="group" translatable="yes">Selection</attribute>
           <item>
             <attribute name="label" translatable="yes">_Join Lines</attribute>
             <attribute name="action">selection.join</attribute>
@@ -101,19 +120,25 @@
             <attribute name="accel">&lt;shift&gt;&lt;control&gt;j</attribute>
           </item>
         </section>
-        <section id="ide-source-view-popup-menu-format-section"/>
+        <section id="ide-source-view-popup-menu-format-section">
+          <attribute name="page" translatable="yes">Text Editor</attribute>
+          <attribute name="group" translatable="yes">Formatting</attribute>
+        </section>
       </submenu>
     </section>
     <section id="ide-source-view-popup-menu-jump-section">
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Code Navigation</attribute>
       <item>
         <attribute name="id">source-view-goto-def</attribute>
         <attribute name="label" translatable="yes">_Go to Definition</attribute>
+        <attribute name="description" translatable="yes">Jump to file and location where item is 
defined</attribute>
         <attribute name="action">sourceview.goto-definition</attribute>
         <attribute name="accel">&lt;alt&gt;period</attribute>
       </item>
       <item>
         <attribute name="id">source-view-find-references</attribute>
-        <attribute name="label" translatable="yes">_Find references</attribute>
+        <attribute name="label" translatable="yes">_Find References</attribute>
         <attribute name="action">sourceview.find-references</attribute>
       </item>
     </section>
diff --git a/src/libide/terminal/gtk/menus.ui b/src/libide/terminal/gtk/menus.ui
index a4b277292..3a22e8cf7 100644
--- a/src/libide/terminal/gtk/menus.ui
+++ b/src/libide/terminal/gtk/menus.ui
@@ -1,24 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- menu id="ide-primary-workspace-menu">
-    <section id="ide-primary-workspace-menu-placeholder1">
-      <item>
-        <attribute name="after">ide-primary-workspace-menu-new-editor-workspace</attribute>
-        <attribute name="id">ide-primary-workspace-menu-new-terminal-workspace</attribute>
-        <attribute name="label" translatable="yes">New Terminal Workspace…</attribute>
-        <attribute name="action">win.new-terminal-workspace</attribute>
-      </item>
-    </section>
-  </menu -->
-  <menu id="ide-terminal-workspace-menu">
-    <section id="ide-terminal-workspace-menu-close">
-      <item>
-        <attribute name="id">ide-terminal-workspace-menu-close</attribute>
-        <attribute name="label" translatable="yes">Close</attribute>
-        <attribute name="action">workspace.close</attribute>
-      </item>
-    </section>
-  </menu>
   <menu id="ide-terminal-page-popup-menu">
     <section id="ide-terminal-page-popup-menu-link-section">
       <item>
@@ -28,9 +9,12 @@
       </item>
     </section>
     <section id="ide-terminal-page-popup-menu-clipboard-section">
+      <attribute name="page" translatable="yes">Terminal</attribute>
+      <attribute name="group" translatable="yes">Clipboard</attribute>
       <item>
         <attribute name="id">copy</attribute>
         <attribute name="label" translatable="yes">_Copy</attribute>
+        <attribute name="description" translatable="yes">Copy selection from terminal to 
clipboard</attribute>
         <attribute name="action">clipboard.copy</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;c</attribute>
       </item>
@@ -41,13 +25,17 @@
       </item>
       <item>
         <attribute name="label" translatable="yes">_Paste</attribute>
+        <attribute name="description" translatable="yes">Paste from clipboard into the terminal</attribute>
         <attribute name="action">clipboard.paste</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;v</attribute>
       </item>
     </section>
     <section id="ide-terminal-page-popup-menu-selection-section">
+      <attribute name="page" translatable="yes">Terminal</attribute>
+      <attribute name="group" translatable="yes">Clipboard</attribute>
       <item>
         <attribute name="label" translatable="yes">Select _All</attribute>
+        <attribute name="description" translatable="yes">Selection all text from terminal including 
scrollback</attribute>
         <attribute name="action">terminal.select-all</attribute>
         <attribute name="target" type="b">true</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;a</attribute>
diff --git a/src/plugins/buildui/gtk/menus.ui b/src/plugins/buildui/gtk/menus.ui
index a312d04f2..e8d5c13de 100644
--- a/src/plugins/buildui/gtk/menus.ui
+++ b/src/plugins/buildui/gtk/menus.ui
@@ -29,14 +29,20 @@
     </section>
   </menu>
   <menu id="build-menu">
-    <item>
-      <attribute name="label" translatable="yes">Configure Project…</attribute>
-      <attribute name="action">context.workbench.configure</attribute>
-      <attribute name="accel">&lt;alt&gt;comma</attribute>
-      <attribute name="description" translatable="yes">Configure settings related to the project</attribute>
-      <attribute name="verb-icon">preferences-system-symbolic</attribute>
-    </item>
+    <section id="build-configure-section">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Configuration</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Configure Project…</attribute>
+        <attribute name="action">context.workbench.configure</attribute>
+        <attribute name="accel">&lt;alt&gt;comma</attribute>
+        <attribute name="description" translatable="yes">Configure settings related to the 
project</attribute>
+        <attribute name="verb-icon">preferences-system-symbolic</attribute>
+      </item>
+    </section>
     <section id="build-menu-target">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Configuration</attribute>
       <item>
         <attribute name="label" translatable="yes">Select Build Target…</attribute>
         <attribute name="action">workspace.buildui.build-target.select</attribute>
@@ -44,6 +50,8 @@
       </item>
     </section>
     <section id="build-commands">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Building</attribute>
       <item>
         <attribute name="label" translatable="yes">_Build</attribute>
         <attribute name="description" translatable="yes">Build the project</attribute>
@@ -65,6 +73,8 @@
       </item>
     </section>
     <section id="build-export">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Install &amp; Deployment</attribute>
       <item>
         <attribute name="label" translatable="yes">_Install</attribute>
         <attribute name="action">context.build-manager.install</attribute>
@@ -90,6 +100,8 @@
       </item>
     </section>
     <section id="build-cork">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Building</attribute>
       <item>
         <attribute name="label" translatable="yes">Stop Build</attribute>
         <attribute name="action">context.build-manager.cancel</attribute>
@@ -98,6 +110,8 @@
       </item>
     </section>
     <section id="build-output">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Building</attribute>
       <item>
         <attribute name="label" translatable="yes">Show Build _Log</attribute>
         <attribute name="action">workspace.buildui.log.show</attribute>
@@ -110,6 +124,8 @@
   </menu>
   <menu id="run-menu">
     <section id="run-command-section">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Running</attribute>
       <item>
         <attribute name="label" translatable="yes">Select Run Command…</attribute>
         <attribute name="action">context.workbench.configure-page</attribute>
@@ -117,6 +133,8 @@
       </item>
     </section>
     <section id="run-menu-observation-section">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Running</attribute>
       <item>
         <attribute name="id">default-run-handler</attribute>
         <attribute name="action">context.run-manager.run-with-handler</attribute>
@@ -127,7 +145,10 @@
         <attribute name="description" translatable="yes">Run the project</attribute>
       </item>
     </section>
-    <section id="run-menu-tests-section"/>
+    <section id="run-menu-tests-section">
+      <attribute name="page" translatable="yes">Code Foundry</attribute>
+      <attribute name="group" translatable="yes">Unit Tests</attribute>
+    </section>
     <section id="run-menu-settings-section">
       <attribute name="label" translatable="yes">Settings</attribute>
       <submenu id="run-menu-appearance">
diff --git a/src/plugins/comment-code/gtk/menus.ui b/src/plugins/comment-code/gtk/menus.ui
index 84e215a31..697f21c77 100644
--- a/src/plugins/comment-code/gtk/menus.ui
+++ b/src/plugins/comment-code/gtk/menus.ui
@@ -3,14 +3,18 @@
   <menu id="ide-source-view-popup-menu-selection-submenu">
     <section id="ide-source-view-popup-menu-selection-comment-code-section">
       <attribute name="after">ide-source-view-popup-menu-line-section</attribute>
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Code Comments</attribute>
       <item>
-        <attribute name="label" translatable="yes">_Comment code</attribute>
+        <attribute name="label" translatable="yes">_Comment Code</attribute>
+        <attribute name="description" translatable="yes">Add comments surrounding the source code 
selection</attribute>
         <attribute name="action">comment-code.comment-code</attribute>
         <attribute name="target" type="s">'0'</attribute>
         <attribute name="accel">&lt;control&gt;m</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">Unco_mment code</attribute>
+        <attribute name="label" translatable="yes">Unco_mment Code</attribute>
+        <attribute name="description" translatable="yes">Remove comments from the source code 
selection</attribute>
         <attribute name="action">comment-code.comment-code</attribute>
         <attribute name="target" type="s">'1'</attribute>
         <attribute name="accel">&lt;control&gt;&lt;shift&gt;m</attribute>
diff --git a/src/plugins/editorui/gtk/menus.ui b/src/plugins/editorui/gtk/menus.ui
index d0cd16145..d9208f365 100644
--- a/src/plugins/editorui/gtk/menus.ui
+++ b/src/plugins/editorui/gtk/menus.ui
@@ -150,6 +150,8 @@
       </item>
     </section>
     <section id="ide-editor-page-save-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Documents</attribute>
       <item>
         <attribute name="label" translatable="yes">Save</attribute>
         <attribute name="action">page.save</attribute>
@@ -185,6 +187,7 @@
     <item>
       <attribute name="label" translatable="yes">Format Selection</attribute>
       <attribute name="action">page.editor.format</attribute>
+      <attribute name="accel">&lt;shift&gt;&lt;alt&gt;f</attribute>
     </item>
   </menu>
 </interface>
diff --git a/src/plugins/menu-search/gtk/menus.ui b/src/plugins/menu-search/gtk/menus.ui
index 7d875919a..420b145c2 100644
--- a/src/plugins/menu-search/gtk/menus.ui
+++ b/src/plugins/menu-search/gtk/menus.ui
@@ -1,44 +1,66 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <menu id="menu-search">
-    <!-- This menu is just used to add extra search items -->
+  <!--
+    These menus are used to add extra search items and keyboard shortcut entries.
+    The are not displayed in a particular menu in the application.
+  -->
 
-    <item>
-      <!-- translators: you may need to swap left/right in your language, as this refers to "start" (not 
"end") -->
-      <attribute name="label" translatable="yes">Toggle Left Panel</attribute>
-      <attribute name="description" translatable="yes">Toggle the left panel in or out of view</attribute>
-      <!-- translators: valid values are "panel-left-symbolic" and "panel-right-symbolic". Choose 
"panel-right-symbolic" for RTL -->
-      <attribute name="verb-icon" translatable="yes">panel-left-symbolic</attribute>
-      <attribute name="action">workspace.panel.toggle-start</attribute>
-    </item>
-
-    <item>
-      <!-- translators: you may need to swap left/right in your language, as this refers to "end" (not 
"start") -->
-      <attribute name="label" translatable="yes">Toggle Right Panel</attribute>
-      <attribute name="description" translatable="yes">Toggle the right panel in or out of view</attribute>
-      <!-- translators: valid values are "panel-right-symbolic" and "panel-left-symbolic". Choose 
"panel-left-symbolic" for RTL -->
-      <attribute name="verb-icon" translatable="yes">panel-right-symbolic</attribute>
-      <attribute name="action">workspace.panel.toggle-end</attribute>
-    </item>
-
-    <item>
-      <attribute name="label" translatable="yes">Toggle Bottom Panel</attribute>
-      <attribute name="description" translatable="yes">Toggle the bottom panel in or out of view</attribute>
-      <attribute name="verb-icon">panel-bottom-symbolic</attribute>
-      <attribute name="action">workspace.panel.toggle-bottom</attribute>
-    </item>
-
-    <item>
-      <attribute name="label" translatable="yes">Switch to Dark Mode</attribute>
-      <attribute name="description" translatable="yes">Change style-scheme to dark variant</attribute>
-      <attribute name="action">app.dark</attribute>
-    </item>
+  <menu id="menu-search-search">
+    <section id="menu-search-search-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Search</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Global Search</attribute>
+        <attribute name="description" translatable="yes">Display the global search</attribute>
+        <attribute name="action">context.workbench.global-search</attribute>
+        <attribute name="accel">&lt;control&gt;Return</attribute>
+      </item>
+    </section>
+  </menu>
 
-    <item>
-      <attribute name="label" translatable="yes">Switch to Light Mode</attribute>
-      <attribute name="description" translatable="yes">Change style-scheme to light variant</attribute>
-      <attribute name="action">app.light</attribute>
-    </item>
+  <menu id="menu-search-panels">
+    <section id="menu-search-panels-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Panels</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Toggle Left Panel</attribute>
+        <attribute name="description" translatable="yes">Toggle the left panel in or out of view</attribute>
+        <!-- translators: valid values are "panel-left-symbolic" and "panel-right-symbolic". Choose 
"panel-right-symbolic" for RTL -->
+        <attribute name="verb-icon" translatable="yes">panel-left-symbolic</attribute>
+        <attribute name="action">workspace.panel.toggle-start</attribute>
+        <attribute name="accel">F9</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Toggle Right Panel</attribute>
+        <attribute name="description" translatable="yes">Toggle the right panel in or out of view</attribute>
+        <!-- translators: valid values are "panel-right-symbolic" and "panel-left-symbolic". Choose 
"panel-left-symbolic" for RTL -->
+        <attribute name="verb-icon" translatable="yes">panel-right-symbolic</attribute>
+        <attribute name="action">workspace.panel.toggle-end</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Toggle Bottom Panel</attribute>
+        <attribute name="description" translatable="yes">Toggle the bottom panel in or out of 
view</attribute>
+        <attribute name="verb-icon">panel-bottom-symbolic</attribute>
+        <attribute name="action">workspace.panel.toggle-bottom</attribute>
+        <attribute name="accel">&lt;control&gt;F9</attribute>
+      </item>
+    </section>
+  </menu>
 
+  <menu id="menu-search-color">
+    <section id="menu-search-color-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Style</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Switch to Dark Mode</attribute>
+        <attribute name="description" translatable="yes">Change style-scheme to dark variant</attribute>
+        <attribute name="action">app.dark</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Switch to Light Mode</attribute>
+        <attribute name="description" translatable="yes">Change style-scheme to light variant</attribute>
+        <attribute name="action">app.light</attribute>
+      </item>
+    </section>
   </menu>
 </interface>
diff --git a/src/plugins/symbol-tree/gtk/menus.ui b/src/plugins/symbol-tree/gtk/menus.ui
index 0e7eda925..93354425b 100644
--- a/src/plugins/symbol-tree/gtk/menus.ui
+++ b/src/plugins/symbol-tree/gtk/menus.ui
@@ -1,12 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <menu id="gbp-symbol-tree-menu">
-    <item>
-      <attribute name="label" translatable="yes">Select Symbol…</attribute>
-      <attribute name="description" translatable="yes">Navigate to a symbol within the current 
page</attribute>
-      <attribute name="verb-icon">lang-function-symbolic</attribute>
-      <attribute name="action">workspace.symbol-tree.focus</attribute>
-      <attribute name="accel">&lt;control&gt;&lt;shift&gt;k</attribute>
-    </item>
+    <section id="gbp-symbol-tree-symbol-section">
+      <attribute name="page" translatable="yes">Text Editor</attribute>
+      <attribute name="group" translatable="yes">Code Navigation</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Select Symbol…</attribute>
+        <attribute name="description" translatable="yes">Navigate to a symbol within the current 
page</attribute>
+        <attribute name="verb-icon">lang-function-symbolic</attribute>
+        <attribute name="action">workspace.symbol-tree.focus</attribute>
+        <attribute name="accel">&lt;control&gt;&lt;shift&gt;k</attribute>
+      </item>
+    </section>
   </menu>
 </interface>
diff --git a/src/plugins/sysprof/gtk/menus.ui b/src/plugins/sysprof/gtk/menus.ui
index 7df30372e..b4c7683ed 100644
--- a/src/plugins/sysprof/gtk/menus.ui
+++ b/src/plugins/sysprof/gtk/menus.ui
@@ -117,6 +117,8 @@
   </menu>
   <menu id="gbp-sysprof-page-menu">
     <section id="gbp-sysprof-page-file-section">
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="label" translatable="yes">Save</attribute>
         <attribute name="action">sysprof.save-as</attribute>
@@ -130,6 +132,8 @@
       </item>
     </section>
     <section id="gbp-sysprof-page-close-section">
+      <attribute name="page">ignore</attribute>
+      <attribute name="group">ignore</attribute>
       <item>
         <attribute name="label" translatable="yes">Close</attribute>
         <attribute name="action">frame.close-page-or-frame</attribute>
diff --git a/src/plugins/terminal/gtk/menus.ui b/src/plugins/terminal/gtk/menus.ui
index 67c02ba6e..7e081b9b0 100644
--- a/src/plugins/terminal/gtk/menus.ui
+++ b/src/plugins/terminal/gtk/menus.ui
@@ -8,7 +8,7 @@
         <attribute name="target" type="s">''</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;t</attribute>
         <attribute name="verb-icon">builder-terminal-symbolic</attribute>
-        <attribute name="description" translatable="yes">Open a new terminal</attribute>
+        <attribute name="description" translatable="yes">Open a new terminal on the host operating 
system</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">New _Build Terminal</attribute>
@@ -16,7 +16,7 @@
         <attribute name="target" type="s">''</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;&lt;alt&gt;t</attribute>
         <attribute name="verb-icon">builder-terminal-symbolic</attribute>
-        <attribute name="description" translatable="yes">Open a new terminal in build pipeline</attribute>
+        <attribute name="description" translatable="yes">Open a new terminal in project's build 
pipeline</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">New _Runtime Terminal</attribute>
@@ -24,7 +24,7 @@
         <attribute name="target" type="s">''</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;alt&gt;t</attribute>
         <attribute name="verb-icon">builder-terminal-symbolic</attribute>
-        <attribute name="description" translatable="yes">Open a new terminal in runtime 
environment</attribute>
+        <attribute name="description" translatable="yes">Open a new terminal in project's runtime 
environment</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/plugins/web-browser/gtk/menus.ui b/src/plugins/web-browser/gtk/menus.ui
index f76de3943..4131551bc 100644
--- a/src/plugins/web-browser/gtk/menus.ui
+++ b/src/plugins/web-browser/gtk/menus.ui
@@ -9,4 +9,29 @@
       </item>
     </section>
   </menu>
+
+  <menu id="menu-search-web-browser">
+    <section id="menu-search-web-browser-section">
+      <attribute name="page" translatable="yes">Application</attribute>
+      <attribute name="group" translatable="yes">Web Browsing</attribute>
+      <item>
+        <attribute name="label" translatable="yes">Reload Page</attribute>
+        <attribute name="description" translatable="yes">Reload the current page</attribute>
+        <attribute name="action">workspace.web-browser.page.reload</attribute>
+        <attribute name="accel">&lt;ctrl&gt;r</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Reload Page</attribute>
+        <attribute name="description" translatable="yes">Reload the current page ignoring cache</attribute>
+        <attribute name="action">workspace.web-browser.page.reload</attribute>
+        <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;r</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Focus Location</attribute>
+        <attribute name="description" translatable="yes">Focus the current page's location</attribute>
+        <attribute name="action">workspace.web-browser.page.location.focus</attribute>
+        <attribute name="accel">&lt;ctrl&gt;l</attribute>
+      </item>
+    </section>
+  </menu>
 </interface>


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