[gnome-builder/wip/gtk4-port: 1092/1774] plugins/buildui: wire up keybindings for warnings/errors




commit 38dcae9353739885233b21b8c253fd57a12eb8b0
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 20 15:39:15 2022 -0700

    plugins/buildui: wire up keybindings for warnings/errors

 src/plugins/buildui/buildui.gresource.xml | 1 +
 src/plugins/buildui/gtk/keybindings.json  | 2 ++
 2 files changed, 3 insertions(+)
---
diff --git a/src/plugins/buildui/buildui.gresource.xml b/src/plugins/buildui/buildui.gresource.xml
index 747861b34..2402b9803 100644
--- a/src/plugins/buildui/buildui.gresource.xml
+++ b/src/plugins/buildui/buildui.gresource.xml
@@ -2,6 +2,7 @@
 <gresources>
   <gresource prefix="/plugins/buildui">
     <file>buildui.plugin</file>
+    <file>gtk/keybindings.json</file>
     <file preprocess="xml-stripblanks">gbp-buildui-log-pane.ui</file>
     <file preprocess="xml-stripblanks">gbp-buildui-omni-bar-section.ui</file>
     <file preprocess="xml-stripblanks">gbp-buildui-pane.ui</file>
diff --git a/src/plugins/buildui/gtk/keybindings.json b/src/plugins/buildui/gtk/keybindings.json
new file mode 100644
index 000000000..aeab6cc1c
--- /dev/null
+++ b/src/plugins/buildui/gtk/keybindings.json
@@ -0,0 +1,2 @@
+{ "trigger" : "<Control><Shift>e", "action" : "win.show-build-status-popover", "args" : "'errors'", "when" : 
"hasErrors() || hasWarnings()", "phase" : "capture" },
+{ "trigger" : "<Control><Shift>w", "action" : "win.show-build-status-popover", "args" : "'warnings'", "when" 
: "hasErrors() || hasWarnings()", "phase" : "capture" },


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