[gnome-builder/wip/gtk4-port: 1099/1774] plugins/valgrind: use ctrl+shift+alt+v for run-with-valgrind
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1099/1774] plugins/valgrind: use ctrl+shift+alt+v for run-with-valgrind
- Date: Mon, 11 Jul 2022 22:31:34 +0000 (UTC)
commit b4804bfc6f90e772e9997d82270c1dade2a12bcb
Author: Christian Hergert <chergert redhat com>
Date: Fri May 20 17:04:32 2022 -0700
plugins/valgrind: use ctrl+shift+alt+v for run-with-valgrind
Easier to remember v for valgrind
src/plugins/valgrind/gbp-valgrind-workbench-addin.c | 2 +-
src/plugins/valgrind/gtk/keybindings.json | 1 +
src/plugins/valgrind/gtk/menus.ui | 2 +-
src/plugins/valgrind/valgrind.gresource.xml | 3 ++-
4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
b/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
index aea8c5cca..11446f008 100644
--- a/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
+++ b/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
@@ -210,7 +210,7 @@ not_found:
"valgrind",
_("Run with Valgrind"),
"system-run-symbolic",
- "<Primary>F10",
+ "<Control><Shift><Alt>v",
gbp_valgrind_workbench_addin_run_handler,
g_object_ref (self),
g_object_unref);
diff --git a/src/plugins/valgrind/gtk/keybindings.json b/src/plugins/valgrind/gtk/keybindings.json
new file mode 100644
index 000000000..6b4af3c9e
--- /dev/null
+++ b/src/plugins/valgrind/gtk/keybindings.json
@@ -0,0 +1 @@
+{ "trigger" : "<Control><Shift><Alt>v", "action" : "run-manager.run-with-handler", "args" : "'valgrind'",
"when" : "canBuild()", "phase" : "capture" },
diff --git a/src/plugins/valgrind/gtk/menus.ui b/src/plugins/valgrind/gtk/menus.ui
index cb56897fd..54ceb7ff8 100644
--- a/src/plugins/valgrind/gtk/menus.ui
+++ b/src/plugins/valgrind/gtk/menus.ui
@@ -9,7 +9,7 @@
<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"><Primary>F10</attribute>
+ <attribute name="accel"><control><shift><alt>v</attribute>
</item>
</section>
</menu>
diff --git a/src/plugins/valgrind/valgrind.gresource.xml b/src/plugins/valgrind/valgrind.gresource.xml
index 534ca0ffb..bfc01b311 100644
--- a/src/plugins/valgrind/valgrind.gresource.xml
+++ b/src/plugins/valgrind/valgrind.gresource.xml
@@ -2,6 +2,7 @@
<gresources>
<gresource prefix="/plugins/valgrind">
<file>valgrind.plugin</file>
- <file>gtk/menus.ui</file>
+ <file preprocess="xml-stripblanks">gtk/menus.ui</file>
+ <file>gtk/keybindings.json</file>
</gresource>
</gresources>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]