[gnome-builder] plugins/buildui: use ctrl+alt+? for build diagnostics
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/buildui: use ctrl+alt+? for build diagnostics
- Date: Fri, 16 Sep 2022 19:01:12 +0000 (UTC)
commit 63c4e8ac9ae9fbfa63506eb56c7a4f1290cba62c
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 16 11:58:40 2022 -0700
plugins/buildui: use ctrl+alt+? for build diagnostics
src/plugins/buildui/gbp-buildui-workspace-addin.c | 2 ++
src/plugins/buildui/gtk/keybindings.json | 3 +--
src/plugins/menu-search/gtk/menus.ui | 14 ++++++++++++++
3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-workspace-addin.c
b/src/plugins/buildui/gbp-buildui-workspace-addin.c
index 5ce12bc60..72b15051f 100644
--- a/src/plugins/buildui/gbp-buildui-workspace-addin.c
+++ b/src/plugins/buildui/gbp-buildui-workspace-addin.c
@@ -23,6 +23,7 @@
#include "config.h"
#include <glib/gi18n.h>
+
#include <libide-editor.h>
#include <libide-foundry.h>
#include <libide-gui.h>
@@ -282,6 +283,7 @@ gbp_buildui_workspace_addin_load (IdeWorkspaceAddin *addin,
"popover", gbp_buildui_status_popover_new (context),
"direction", GTK_ARROW_UP,
"focus-on-click", FALSE,
+ "tooltip-text", _("Display Build Diagnostics (Ctrl+Alt+?)"),
NULL);
panel_statusbar_add_prefix (statusbar, 1000, GTK_WIDGET (self->status_button));
diff --git a/src/plugins/buildui/gtk/keybindings.json b/src/plugins/buildui/gtk/keybindings.json
index ab5b4aedb..ac0751211 100644
--- a/src/plugins/buildui/gtk/keybindings.json
+++ b/src/plugins/buildui/gtk/keybindings.json
@@ -6,6 +6,5 @@
{ "trigger" : "<Control><Shift>space", "action" : "context.run-manager.run", "when" : "hasProject()",
"phase" : "capture" },
/* Errors and Warnings Popover */
-{ "trigger" : "<Control><Shift>e", "action" : "workspace.buildui.status.show", "args" : "'errors'", "when" :
"hasErrors() || hasWarnings()", "phase" : "capture" },
-{ "trigger" : "<Control><Shift>w", "action" : "workspace.buildui.status.show", "args" : "'warnings'", "when"
: "hasErrors() || hasWarnings()", "phase" : "capture" },
+{ "trigger" : "<Control><Alt>question", "action" : "workspace.buildui.status.show", "args" : "'errors'",
"when" : "hasProject()", "phase" : "capture" },
diff --git a/src/plugins/menu-search/gtk/menus.ui b/src/plugins/menu-search/gtk/menus.ui
index 420b145c2..f6f040483 100644
--- a/src/plugins/menu-search/gtk/menus.ui
+++ b/src/plugins/menu-search/gtk/menus.ui
@@ -63,4 +63,18 @@
</item>
</section>
</menu>
+
+ <menu id="menu-search-projects">
+ <section id="menu-search-projects-section">
+ <attribute name="page" translatable="yes">Text Editor</attribute>
+ <attribute name="group" translatable="yes">Diagnostics</attribute>
+ <item>
+ <attribute name="label" translatable="yes">Display Build Diagnostics</attribute>
+ <attribute name="description" translatable="yes">Display errors and warnings found during
build</attribute>
+ <attribute name="action">workspace.buildui.status.show</attribute>
+ <attribute name="target" type="s">'errors'</attribute>
+ <attribute name="accel"><control><alt>question</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]