[gnome-builder] plugins/menu-search: add menu for additional search items
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/menu-search: add menu for additional search items
- Date: Sat, 16 Jul 2022 17:12:02 +0000 (UTC)
commit dacd4b5534ac5c2a70b54034aa6d17dfd6d5dbbc
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 16 10:10:49 2022 -0700
plugins/menu-search: add menu for additional search items
We can place things in here that are useful but not necessarily exposed
via menus and still have them translated.
po/POTFILES.in | 1 +
src/plugins/menu-search/gtk/menus.ui | 29 +++++++++++++++++++++++
src/plugins/menu-search/menu-search.gresource.xml | 1 +
3 files changed, 31 insertions(+)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index dee758308..308535aa0 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -219,6 +219,7 @@ src/plugins/make-templates/gbp-make-template-provider.c
src/plugins/markdown-preview/gtk/menus.ui
src/plugins/maven/gbp-maven-pipeline-addin.c
src/plugins/maven/gbp-maven-run-command-provider.c
+src/plugins/menu-search/gtk/menus.ui
src/plugins/meson/gbp-meson-build-system.c
src/plugins/meson/gbp-meson-config-view-addin.c
src/plugins/meson/gbp-meson-introspection.c
diff --git a/src/plugins/menu-search/gtk/menus.ui b/src/plugins/menu-search/gtk/menus.ui
new file mode 100644
index 000000000..e73083346
--- /dev/null
+++ b/src/plugins/menu-search/gtk/menus.ui
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <menu id="extra-search-menu">
+ <!-- This menu is just used to add extra search items -->
+
+ <item>
+ <!-- translators: you may need to swap left/right in your language, as this refers to "start" (not
"end") -->
+ <attribute name="label" translatable="yes">Toggle Left Panel</attribute>
+ <attribute name="description" translatable="yes">Toggle the left panel in our out of view</attribute>
+ <attribute name="verb-icon" translatable="yes">panel-left-symbolic</attribute>
+ <attribute name="action">panel.toggle-start</attribute>
+ </item>
+
+ <item>
+ <!-- translators: you may need to swap left/right in your language, as this refers to "end" (not
"start") -->
+ <attribute name="label" translatable="yes">Toggle Right Panel</attribute>
+ <attribute name="description" translatable="yes">Toggle the right panel in our out of view</attribute>
+ <attribute name="verb-icon" translatable="yes">panel-right-symbolic</attribute>
+ <attribute name="action">panel.toggle-end</attribute>
+ </item>
+
+ <item>
+ <attribute name="label" translatable="yes">Toggle Bottom Panel</attribute>
+ <attribute name="description" translatable="yes">Toggle the bottom panel in our out of view</attribute>
+ <attribute name="verb-icon">panel-bottom-symbolic</attribute>
+ <attribute name="action">panel.toggle-bottom</attribute>
+ </item>
+ </menu>
+</interface>
diff --git a/src/plugins/menu-search/menu-search.gresource.xml
b/src/plugins/menu-search/menu-search.gresource.xml
index d178a9512..c12c13391 100644
--- a/src/plugins/menu-search/menu-search.gresource.xml
+++ b/src/plugins/menu-search/menu-search.gresource.xml
@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/plugins/menu-search">
<file>menu-search.plugin</file>
+ <file preprocess="xml-stripblanks">gtk/menus.ui</file>
</gresource>
</gresources>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]