[gnome-builder/wip/gtk4-port] plugins/buildui: move run/build menus to plugin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/buildui: move run/build menus to plugin
- Date: Mon, 2 May 2022 18:49:46 +0000 (UTC)
commit 4d773877cce4a044a307c14c116314fb7466291e
Author: Christian Hergert <chergert redhat com>
Date: Mon May 2 11:49:41 2022 -0700
plugins/buildui: move run/build menus to plugin
These shouldn't be in libide-gui. Instead, plugins that wish to extend
them should Depends=buildui; in their .plugin file and merge into the
menu like normal.
Also fixes the action-name for win.update-dependencies.
src/libide/gui/gtk/menus.ui | 118 ---------------------------------------
src/plugins/buildui/gtk/menus.ui | 118 +++++++++++++++++++++++++++++++++++++++
2 files changed, 118 insertions(+), 118 deletions(-)
---
diff --git a/src/libide/gui/gtk/menus.ui b/src/libide/gui/gtk/menus.ui
index 49c99855f..d0b8eefd2 100644
--- a/src/libide/gui/gtk/menus.ui
+++ b/src/libide/gui/gtk/menus.ui
@@ -50,124 +50,6 @@
</item>
</section>
</menu>
- <menu id="build-menu">
- <section id="build-menu-config">
- <submenu id="build-menu-configs">
- <attribute name="label" translatable="yes">Active Configuration</attribute>
- </submenu>
- <item>
- <attribute name="label" translatable="yes">Configure Project…</attribute>
- <attribute name="action">workbench.configure</attribute>
- </item>
- </section>
- <section id="build-menu-target">
- <submenu id="build-menu-targets">
- <attribute name="label" translatable="yes">Build Target</attribute>
- </submenu>
- </section>
- <section id="build-commands">
- <item>
- <attribute name="label" translatable="yes">_Build</attribute>
- <attribute name="action">build-manager.build</attribute>
- <attribute name="accel"><ctrl><shift>space</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Rebuild</attribute>
- <attribute name="action">build-manager.rebuild</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Clean</attribute>
- <attribute name="action">build-manager.clean</attribute>
- </item>
- </section>
- <section id="build-cork">
- <item>
- <attribute name="label" translatable="yes">Stop Build</attribute>
- <attribute name="action">build-manager.cancel</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Pause Build</attribute>
- <attribute name="action">build-manager.pause</attribute>
- <attribute name="role">check</attribute>
- </item>
- </section>
- <section id="build-output">
- <item>
- <attribute name="label" translatable="yes">Show Build Log</attribute>
- <attribute name="action">buildui.show-log</attribute>
- <attribute name="accel"><ctrl><shift>l</attribute>
- </item>
- </section>
- <section id="build-deps">
- <item>
- <attribute name="label" translatable="yes">Update Dependencies…</attribute>
- <attribute name="action">buildui.update-deps</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Manage SDKs…</attribute>
- <attribute name="action">foundryui.manage-sdks</attribute>
- </item>
- </section>
- <section id="build-export"/>
- </menu>
- <menu id="run-menu">
- <section id="run-command-section">
- <submenu id="run-commands">
- <attribute name="label" translatable="yes">Run Command</attribute>
- </submenu>
- <item>
- <attribute name="label" translatable="yes">Custom Command…</attribute>
- <attribute name="action">runui.custom</attribute>
- </item>
- </section>
- <section id="run-menu-observation-section">
- <item>
- <attribute name="id">default-run-handler</attribute>
- <attribute name="action">run-manager.run-with-handler</attribute>
- <attribute name="target" type="s">'run'</attribute>
- <attribute name="label" translatable="yes">Run</attribute>
- <attribute name="verb-icon-name">builder-run-start-symbolic</attribute>
- </item>
- </section>
- <section id="run-menu-settings-section">
- <attribute name="label" translatable="yes">Settings</attribute>
- <submenu id="run-menu-appearance">
- <attribute name="label" translatable="yes">Appearance</attribute>
- <item>
- <attribute name="label">Follow System Style</attribute>
- <attribute name="role">radio</attribute>
- <attribute name="action">runui.color-scheme</attribute>
- <attribute name="target" type="s">'default'</attribute>
- </item>
- <item>
- <attribute name="label">Force Light</attribute>
- <attribute name="role">radio</attribute>
- <attribute name="action">runui.color-scheme</attribute>
- <attribute name="target" type="s">'force-dark'</attribute>
- </item>
- <item>
- <attribute name="label">Force Dark</attribute>
- <attribute name="role">radio</attribute>
- <attribute name="action">runui.color-scheme</attribute>
- <attribute name="target" type="s">'force-dark'</attribute>
- </item>
- </submenu>
- <submenu id="run-menu-a11y">
- <attribute name="label" translatable="yes">Accessibility</attribute>
- <item>
- <attribute name="label" translatable="yes">High Contrast</attribute>
- <attribute name="role">check</attribute>
- <attribute name="action">runui.high-contrast</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Right-to-Left</attribute>
- <attribute name="role">check</attribute>
- <attribute name="action">runui.textdir</attribute>
- <attribute name="target" type="s">'rtl'</attribute>
- </item>
- </submenu>
- </section>
- </menu>
<menu id="new-document-menu">
<section id="new-document-section"/>
<section id="open-document-section"/>
diff --git a/src/plugins/buildui/gtk/menus.ui b/src/plugins/buildui/gtk/menus.ui
index 01a0a8cd6..5fdf20fda 100644
--- a/src/plugins/buildui/gtk/menus.ui
+++ b/src/plugins/buildui/gtk/menus.ui
@@ -28,4 +28,122 @@
</submenu>
</section>
</menu>
+ <menu id="build-menu">
+ <section id="build-menu-config">
+ <submenu id="build-menu-configs">
+ <attribute name="label" translatable="yes">Active Configuration</attribute>
+ </submenu>
+ <item>
+ <attribute name="label" translatable="yes">Configure Project…</attribute>
+ <attribute name="action">workbench.configure</attribute>
+ </item>
+ </section>
+ <section id="build-menu-target">
+ <submenu id="build-menu-targets">
+ <attribute name="label" translatable="yes">Build Target</attribute>
+ </submenu>
+ </section>
+ <section id="build-commands">
+ <item>
+ <attribute name="label" translatable="yes">_Build</attribute>
+ <attribute name="action">build-manager.build</attribute>
+ <attribute name="accel"><ctrl><shift>space</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Rebuild</attribute>
+ <attribute name="action">build-manager.rebuild</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Clean</attribute>
+ <attribute name="action">build-manager.clean</attribute>
+ </item>
+ </section>
+ <section id="build-cork">
+ <item>
+ <attribute name="label" translatable="yes">Stop Build</attribute>
+ <attribute name="action">build-manager.cancel</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Pause Build</attribute>
+ <attribute name="action">build-manager.pause</attribute>
+ <attribute name="role">check</attribute>
+ </item>
+ </section>
+ <section id="build-output">
+ <item>
+ <attribute name="label" translatable="yes">Show Build Log</attribute>
+ <attribute name="action">buildui.show-log</attribute>
+ <attribute name="accel"><ctrl><shift>l</attribute>
+ </item>
+ </section>
+ <section id="build-deps">
+ <item>
+ <attribute name="label" translatable="yes">Update Dependencies…</attribute>
+ <attribute name="action">win.update-dependencies</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Manage SDKs…</attribute>
+ <attribute name="action">foundryui.manage-sdks</attribute>
+ </item>
+ </section>
+ <section id="build-export"/>
+ </menu>
+ <menu id="run-menu">
+ <section id="run-command-section">
+ <submenu id="run-commands">
+ <attribute name="label" translatable="yes">Run Command</attribute>
+ </submenu>
+ <item>
+ <attribute name="label" translatable="yes">Custom Command…</attribute>
+ <attribute name="action">runui.custom</attribute>
+ </item>
+ </section>
+ <section id="run-menu-observation-section">
+ <item>
+ <attribute name="id">default-run-handler</attribute>
+ <attribute name="action">run-manager.run-with-handler</attribute>
+ <attribute name="target" type="s">'run'</attribute>
+ <attribute name="label" translatable="yes">Run</attribute>
+ <attribute name="verb-icon-name">builder-run-start-symbolic</attribute>
+ </item>
+ </section>
+ <section id="run-menu-settings-section">
+ <attribute name="label" translatable="yes">Settings</attribute>
+ <submenu id="run-menu-appearance">
+ <attribute name="label" translatable="yes">Appearance</attribute>
+ <item>
+ <attribute name="label">Follow System Style</attribute>
+ <attribute name="role">radio</attribute>
+ <attribute name="action">runui.color-scheme</attribute>
+ <attribute name="target" type="s">'default'</attribute>
+ </item>
+ <item>
+ <attribute name="label">Force Light</attribute>
+ <attribute name="role">radio</attribute>
+ <attribute name="action">runui.color-scheme</attribute>
+ <attribute name="target" type="s">'force-dark'</attribute>
+ </item>
+ <item>
+ <attribute name="label">Force Dark</attribute>
+ <attribute name="role">radio</attribute>
+ <attribute name="action">runui.color-scheme</attribute>
+ <attribute name="target" type="s">'force-dark'</attribute>
+ </item>
+ </submenu>
+ <submenu id="run-menu-a11y">
+ <attribute name="label" translatable="yes">Accessibility</attribute>
+ <item>
+ <attribute name="label" translatable="yes">High Contrast</attribute>
+ <attribute name="role">check</attribute>
+ <attribute name="action">runui.high-contrast</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Right-to-Left</attribute>
+ <attribute name="role">check</attribute>
+ <attribute name="action">runui.textdir</attribute>
+ <attribute name="target" type="s">'rtl'</attribute>
+ </item>
+ </submenu>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]