[gnome-builder] menus: opt-in to menu search for various menu items



commit 1ef8014f08f0efa9df834733c9acf0b8579217ce
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 15 22:02:25 2022 -0700

    menus: opt-in to menu search for various menu items

 src/libide/greeter/gtk/menus.ui         |  2 ++
 src/libide/gui/gtk/menus.ui             |  3 +++
 src/libide/gui/ide-search-popover.ui    |  1 +
 src/plugins/buildui/gtk/menus.ui        | 19 +++++++++++++++++++
 src/plugins/create-project/gtk/menus.ui |  1 +
 src/plugins/debuggerui/gtk/menus.ui     |  3 ++-
 src/plugins/sysprof/gtk/menus.ui        |  3 ++-
 src/plugins/valgrind/gtk/menus.ui       |  3 ++-
 8 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/greeter/gtk/menus.ui b/src/libide/greeter/gtk/menus.ui
index 38aea036f..4c8b216f1 100644
--- a/src/libide/greeter/gtk/menus.ui
+++ b/src/libide/greeter/gtk/menus.ui
@@ -54,12 +54,14 @@
         <attribute name="label" translatable="yes">Open a _Project…</attribute>
         <attribute name="action">app.present-greeter-with-page</attribute>
         <attribute name="target" type="s">''</attribute>
+        <attribute name="description" translatable="yes">Open a new or existing project</attribute>
       </item>
       <item>
         <attribute name="id">ide-primary-workspace-menu-clone</attribute>
         <attribute name="label" translatable="yes">_Clone Repository…</attribute>
         <attribute name="action">app.present-greeter-with-page</attribute>
         <attribute name="target" type="s">'clone'</attribute>
+        <attribute name="description" translatable="yes">Create a new project by cloning a 
repository</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/libide/gui/gtk/menus.ui b/src/libide/gui/gtk/menus.ui
index a5b20291d..69f132647 100644
--- a/src/libide/gui/gtk/menus.ui
+++ b/src/libide/gui/gtk/menus.ui
@@ -13,6 +13,7 @@
         <attribute name="id">ide-primary-workspace-menu-close-project</attribute>
         <attribute name="label" translatable="yes">Close Project</attribute>
         <attribute name="action">workbench.close</attribute>
+        <attribute name="verb-icon">window-close-symbolic</attribute>
       </item>
     </section>
     <section id="ide-primary-workspace-menu-placeholder2"/>
@@ -21,12 +22,14 @@
       <item>
         <attribute name="id">ide-primary-workspace-menu-preferences</attribute>
         <attribute name="label" translatable="yes">Preferences</attribute>
+        <attribute name="description" translatable="yes">Change application preferences</attribute>
         <attribute name="action">app.preferences</attribute>
         <attribute name="accel">&lt;primary&gt;comma</attribute>
       </item>
       <item>
         <attribute name="id">ide-primary-workspace-menu-shortcuts</attribute>
         <attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
+        <attribute name="description" translatable="yes">Find keyboard shortcuts</attribute>
         <attribute name="action">win.show-help-overlay</attribute>
         <attribute name="accel">&lt;primary&gt;question</attribute>
       </item>
diff --git a/src/libide/gui/ide-search-popover.ui b/src/libide/gui/ide-search-popover.ui
index 21e1c786f..8675f1809 100644
--- a/src/libide/gui/ide-search-popover.ui
+++ b/src/libide/gui/ide-search-popover.ui
@@ -70,6 +70,7 @@
         <property name="halign">start</property>
         <property name="ellipsize">end</property>
         <property name="use-markup">true</property>
+        <property name="use-underline">true</property>
         <binding name="label">
           <lookup name="title" type="IdeSearchResult">
             <lookup name="item">GtkListItem</lookup>
diff --git a/src/plugins/buildui/gtk/menus.ui b/src/plugins/buildui/gtk/menus.ui
index df725cf7b..2191d57d4 100644
--- a/src/plugins/buildui/gtk/menus.ui
+++ b/src/plugins/buildui/gtk/menus.ui
@@ -43,26 +43,36 @@
     <section id="build-commands">
       <item>
         <attribute name="label" translatable="yes">_Build</attribute>
+        <attribute name="description" translatable="yes">Build the project</attribute>
         <attribute name="action">build-manager.build</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;alt&gt;&lt;shift&gt;b</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Rebuild</attribute>
+        <attribute name="description" translatable="yes">Rebuild the project</attribute>
         <attribute name="action">build-manager.rebuild</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Clean</attribute>
+        <attribute name="description" translatable="yes">Clean the project</attribute>
         <attribute name="action">build-manager.clean</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
     </section>
     <section id="build-export">
       <item>
         <attribute name="label" translatable="yes">_Install</attribute>
         <attribute name="action">build-manager.install</attribute>
+        <attribute name="description" translatable="yes">Install the project</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">Deploy to Device…</attribute>
         <attribute name="action">device-manager.deploy</attribute>
+        <attribute name="description" translatable="yes">Deploy project to current device</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
       <item>
         <!-- TODO: Instead of having a generic Export via the build-manager,
@@ -72,12 +82,16 @@
         -->
         <attribute name="label" translatable="yes">_Export</attribute>
         <attribute name="action">build-manager.export</attribute>
+        <attribute name="description" translatable="yes">Export project</attribute>
+        <attribute name="verb-icon">builder-build-symbolic</attribute>
       </item>
     </section>
     <section id="build-cork">
       <item>
         <attribute name="label" translatable="yes">Stop Build</attribute>
         <attribute name="action">build-manager.cancel</attribute>
+        <attribute name="description" translatable="yes">Stop building project</attribute>
+        <attribute name="verb-icon">builder-build-stop-symbolic</attribute>
       </item>
     </section>
     <section id="build-output">
@@ -85,12 +99,16 @@
         <attribute name="label" translatable="yes">Show Build _Log</attribute>
         <attribute name="action">win.show-build-log</attribute>
         <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;l</attribute>
+        <attribute name="description" translatable="yes">Display panel containing the build log</attribute>
+        <attribute name="verb-icon">builder-terminal-symbolic</attribute>
       </item>
     </section>
     <section id="build-deps">
       <item>
         <attribute name="label" translatable="yes">Update Dependencies…</attribute>
         <attribute name="action">win.update-dependencies</attribute>
+        <attribute name="description" translatable="yes">Download updates to project dependencies</attribute>
+        <attribute name="verb-icon">software-update-available-symbolic</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">Manage SDKs…</attribute>
@@ -114,6 +132,7 @@
         <attribute name="label" translatable="yes">Run</attribute>
         <attribute name="accel">&lt;Control&gt;&lt;Shift&gt;space</attribute>
         <attribute name="verb-icon">builder-run-start-symbolic</attribute>
+        <attribute name="description" translatable="yes">Run the project</attribute>
       </item>
     </section>
     <section id="run-menu-tests-section"/>
diff --git a/src/plugins/create-project/gtk/menus.ui b/src/plugins/create-project/gtk/menus.ui
index 9bdd78a0b..f1f7ac269 100644
--- a/src/plugins/create-project/gtk/menus.ui
+++ b/src/plugins/create-project/gtk/menus.ui
@@ -19,6 +19,7 @@
         <attribute name="action">app.present-greeter-with-page</attribute>
         <attribute name="target" type="s">'create-project'</attribute>
         <attribute name="after">ide-primary-workspace-menu-open</attribute>
+        <attribute name="description" translatable="yes">Create a new project from template</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/plugins/debuggerui/gtk/menus.ui b/src/plugins/debuggerui/gtk/menus.ui
index 655f7d73a..4368fe55d 100644
--- a/src/plugins/debuggerui/gtk/menus.ui
+++ b/src/plugins/debuggerui/gtk/menus.ui
@@ -8,8 +8,9 @@
         <attribute name="action">run-manager.run-with-handler</attribute>
         <attribute name="target" type="s">'debuggerui'</attribute>
         <attribute name="label" translatable="yes">Run with Debugger</attribute>
-        <attribute name="verb-icon-name">builder-debugger-symbolic</attribute>
+        <attribute name="verb-icon">builder-debugger-symbolic</attribute>
         <attribute name="accel">&lt;control&gt;&lt;shift&gt;&lt;alt&gt;d</attribute>
+        <attribute name="description" translatable="yes">Run the project with debugger</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/plugins/sysprof/gtk/menus.ui b/src/plugins/sysprof/gtk/menus.ui
index ced6ceb4c..e325b848b 100644
--- a/src/plugins/sysprof/gtk/menus.ui
+++ b/src/plugins/sysprof/gtk/menus.ui
@@ -17,8 +17,9 @@
         <attribute name="after">default-run-handler</attribute>
         <attribute name="action">sysprof.run</attribute>
         <attribute name="label" translatable="yes">Run with Profiler</attribute>
-        <attribute name="verb-icon-name">builder-profiler-symbolic</attribute>
+        <attribute name="verb-icon">builder-profiler-symbolic</attribute>
         <attribute name="accel">&lt;Control&gt;&lt;Shift&gt;&lt;Alt&gt;p</attribute>
+        <attribute name="description" translatable="yes">Run the project with profiler</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/plugins/valgrind/gtk/menus.ui b/src/plugins/valgrind/gtk/menus.ui
index b2bee6f15..f03f42ea7 100644
--- a/src/plugins/valgrind/gtk/menus.ui
+++ b/src/plugins/valgrind/gtk/menus.ui
@@ -8,8 +8,9 @@
         <attribute name="action">run-manager.run-with-handler</attribute>
         <attribute name="target" type="s">'valgrind'</attribute>
         <attribute name="label" translatable="yes">Run with Leak Detector</attribute>
-        <attribute name="verb-icon-name">system-run-symbolic</attribute>
+        <attribute name="verb-icon">system-run-symbolic</attribute>
         <attribute name="accel">&lt;control&gt;&lt;shift&gt;&lt;alt&gt;v</attribute>
+        <attribute name="description" translatable="yes">Run the project with valgrind</attribute>
       </item>
     </section>
   </menu>


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