[gnome-builder/wip/gtk4-port] plugins/valgrind: make valgrind plugin load



commit 2df4b50e66b79e02b2d9514983a799f8ae35c500
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 19 13:36:59 2022 -0700

    plugins/valgrind: make valgrind plugin load
    
    Now that this is provided internally, we need to actually include the
    valgrind.plugin as part of the resource and ensure menu sections line
    up with what is expected now.

 src/plugins/valgrind/gtk/menus.ui           | 6 +++---
 src/plugins/valgrind/valgrind.gresource.xml | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/valgrind/gtk/menus.ui b/src/plugins/valgrind/gtk/menus.ui
index 4a2e8122a..971e6d527 100644
--- a/src/plugins/valgrind/gtk/menus.ui
+++ b/src/plugins/valgrind/gtk/menus.ui
@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <menu id="run-menu">
-    <section id="run-menu-section">
+    <section id="run-menu-observation-section">
       <item>
         <attribute name="id">valgrind-run-handler</attribute>
         <attribute name="after">default-run-handler</attribute>
         <attribute name="action">run-manager.run-with-handler</attribute>
-        <attribute name="target">valgrind</attribute>
+        <attribute name="target" type="s">'valgrind'</attribute>
         <attribute name="label" translatable="yes">Run with Valgrind</attribute>
         <attribute name="verb-icon-name">system-run-symbolic</attribute>
-        <attribute name="accel">&lt;Control&gt;F10</attribute>
+        <attribute name="accel">&lt;Primary&gt;F10</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/plugins/valgrind/valgrind.gresource.xml b/src/plugins/valgrind/valgrind.gresource.xml
index 7fc84b65d..534ca0ffb 100644
--- a/src/plugins/valgrind/valgrind.gresource.xml
+++ b/src/plugins/valgrind/valgrind.gresource.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
-  <gresource prefix="/plugins/valgrind_plugin">
+  <gresource prefix="/plugins/valgrind">
+    <file>valgrind.plugin</file>
     <file>gtk/menus.ui</file>
   </gresource>
 </gresources>


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