[gnome-builder] plugins/symbol-tree: allow searching for select symbol action
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/symbol-tree: allow searching for select symbol action
- Date: Tue, 19 Jul 2022 22:29:34 +0000 (UTC)
commit bc0ef0b3b2d548a00b21fca4ec5f20d83d802164
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 19 14:49:12 2022 -0700
plugins/symbol-tree: allow searching for select symbol action
po/POTFILES.in | 1 +
src/plugins/symbol-tree/gtk/menus.ui | 12 ++++++++++++
src/plugins/symbol-tree/symbol-tree.gresource.xml | 1 +
3 files changed, 14 insertions(+)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 03a97f08a..5b175bcc6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -267,6 +267,7 @@ src/plugins/symbol-tree/gbp-symbol-hover-provider.c
src/plugins/symbol-tree/gbp-symbol-popover.ui
src/plugins/symbol-tree/gbp-symbol-search-result.c
src/plugins/symbol-tree/gbp-symbol-workspace-addin.c
+src/plugins/symbol-tree/gtk/menus.ui
src/plugins/sysprof/gbp-sysprof-surface.c
src/plugins/sysprof/gbp-sysprof-workspace-addin.c
src/plugins/sysprof/gtk/menus.ui
diff --git a/src/plugins/symbol-tree/gtk/menus.ui b/src/plugins/symbol-tree/gtk/menus.ui
new file mode 100644
index 000000000..87597d52e
--- /dev/null
+++ b/src/plugins/symbol-tree/gtk/menus.ui
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <menu id="gbp-symbol-tree-menu">
+ <item>
+ <attribute name="label" translatable="yes">Select Symbol…</attribute>
+ <attribute name="description" translatable="yes">Navigate to a symbol within the current
page</attribute>
+ <attribute name="verb-icon">lang-function-symbolic</attribute>
+ <attribute name="action">win.focus-symbol-tree</attribute>
+ <attribute name="accel"><control><shift>k</attribute>
+ </item>
+ </menu>
+</interface>
diff --git a/src/plugins/symbol-tree/symbol-tree.gresource.xml
b/src/plugins/symbol-tree/symbol-tree.gresource.xml
index 63075fa12..728a6b0c3 100644
--- a/src/plugins/symbol-tree/symbol-tree.gresource.xml
+++ b/src/plugins/symbol-tree/symbol-tree.gresource.xml
@@ -3,6 +3,7 @@
<gresource prefix="/plugins/symbol-tree">
<file>symbol-tree.plugin</file>
<file>gtk/keybindings.json</file>
+ <file>gtk/menus.ui</file>
<file preprocess="xml-stripblanks">gbp-symbol-popover.ui</file>
<file preprocess="xml-stripblanks">gbp-symbol-popover-row.ui</file>
</gresource>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]