[gnome-builder] editor: move menus.ui for editor details into sub menus.ui
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor: move menus.ui for editor details into sub menus.ui
- Date: Thu, 21 Sep 2017 22:08:31 +0000 (UTC)
commit c463c02359f20ce1f63e09b73f45898459025823
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 21 15:06:12 2017 -0700
editor: move menus.ui for editor details into sub menus.ui
This keeps things that are related to the editor itself in the editor
plugin rather than in the top-level gtk/menus.ui.
po/POTFILES.in | 1 +
src/libide/editor/gtk/menus.ui | 132 +++++++++++++++++++++++++++++++++++++++
src/libide/gtk/menus.ui | 121 -----------------------------------
src/libide/libide.gresource.xml | 1 +
4 files changed, 134 insertions(+), 121 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 23df486..5963df8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -60,6 +60,7 @@ src/libide/debugger/ide-debugger-threads-view.ui
src/libide/devices/ide-device-manager.c
src/libide/directory/ide-directory-vcs.c
src/libide/doap/xml-reader.c
+src/libide/editor/gtk/menus.ui
src/libide/editor/ide-editor-layout-stack-controls.c
src/libide/editor/ide-editor-layout-stack-controls.ui
src/libide/editor/ide-editor-perspective-actions.c
diff --git a/src/libide/editor/gtk/menus.ui b/src/libide/editor/gtk/menus.ui
new file mode 100644
index 0000000..2985b24
--- /dev/null
+++ b/src/libide/editor/gtk/menus.ui
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <menu id="perspectives-menu">
+ <section id="perspectives-menu-section">
+ <item>
+ <attribute name="accel"><alt>1</attribute>
+ <attribute name="action">win.perspective</attribute>
+ <attribute name="id">perspective-menu-editor</attribute>
+ <attribute name="label" translatable="yes">Editor</attribute>
+ <attribute name="role">normal</attribute>
+ <attribute name="target">editor</attribute>
+ <attribute name="verb-icon-name">builder-editor-symbolic</attribute>
+ </item>
+ </section>
+ </menu>
+ <menu id="ide-editor-search-bar-entry-menu">
+ <section id="ide-editor-search-bar-entry-menu-settings-section">
+ <item>
+ <attribute name="label" translatable="yes">Regular expressions</attribute>
+ <attribute name="action">search-settings.regex-enabled</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Case sensitive</attribute>
+ <attribute name="action">search-settings.case-sensitive</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Match whole word only</attribute>
+ <attribute name="action">search-settings.at-word-boundaries</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Wrap Around</attribute>
+ <attribute name="action">search-settings.wrap-around</attribute>
+ </item>
+ </section>
+ <section id="ide-editor-search-bar-entry-menu-clipboard-section">
+ <item>
+ <attribute name="label" translatable="yes">Cu_t</attribute>
+ <attribute name="action">entry.cut-clipboard</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Copy</attribute>
+ <attribute name="action">entry.copy-clipboard</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Paste</attribute>
+ <attribute name="action">entry.paste-clipboard</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Delete</attribute>
+ <attribute name="action">entry.delete-selection</attribute>
+ </item>
+ </section>
+ <section id="ide-editor-search-bar-entry-menu-selection-section">
+ <item>
+ <attribute name="label" translatable="yes">Select _All</attribute>
+ <attribute name="action">entry.select-all</attribute>
+ </item>
+ </section>
+ </menu>
+ <menu id="ide-layout-stack-frame-menu">
+ <section id="ide-layout-stack-frame-section">
+ <attribute name="label" translatable="yes">Frame</attribute>
+ <item>
+ <attribute name="label" translatable="yes">Move Left</attribute>
+ <attribute name="action">layoutstack.move-left</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Move Right</attribute>
+ <attribute name="action">layoutstack.move-right</attribute>
+ </item>
+ <item>
+ <attribute name="action">layoutgrid.close-stack</attribute>
+ <attribute name="label" translatable="yes">Close</attribute>
+ </item>
+ </section>
+ </menu>
+ <menu id="ide-editor-view-document-menu">
+ <section id="editor-document-section">
+ <attribute name="label" translatable="yes">Document</attribute>
+ <item>
+ <attribute name="id">editor-document-open-in-new-frame</attribute>
+ <attribute name="label" translatable="yes">Open in New Frame</attribute>
+ <attribute name="action">layoutstack.open-in-new-frame</attribute>
+ <attribute name="target" type="s">""</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Split</attribute>
+ <attribute name="action">layoutstack.split-view</attribute>
+ <attribute name="target" type="s">""</attribute>
+ <attribute name="verb-icon-name">builder-split-tab-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Print…</attribute>
+ <attribute name="action">editor-view.print</attribute>
+ </item>
+ </section>
+ <section id="editor-document-preferences-section">
+ <attribute name="after">editor-document-section</attribute>
+ <item>
+ <attribute name="label" translatable="yes">Document Preferences</attribute>
+ <attribute name="action">editor-view.properties</attribute>
+ </item>
+ </section>
+ <section id="editor-document-save-section">
+ <attribute name="after">editor-document-preferences-section</attribute>
+ <item>
+ <attribute name="action">editor-view.save</attribute>
+ <attribute name="label" translatable="yes">_Save</attribute>
+ </item>
+ <item>
+ <attribute name="action">editor-view.save-as</attribute>
+ <attribute name="label" translatable="yes">Save _As</attribute>
+ </item>
+ </section>
+ <section id="editor-document-close-section">
+ <attribute name="after">editor-document-save-section</attribute>
+ <item>
+ <attribute name="action">layoutstack.close-view</attribute>
+ <attribute name="label" translatable="yes">Close</attribute>
+ </item>
+ </section>
+ </menu>
+ <menu id="new-document-menu">
+ <section id="new-document-section">
+ <item>
+ <attribute name="id">new-file</attribute>
+ <attribute name="label" translatable="yes">New File</attribute>
+ <attribute name="action">editor.new-file</attribute>
+ </item>
+ </section>
+ </menu>
+</interface>
diff --git a/src/libide/gtk/menus.ui b/src/libide/gtk/menus.ui
index 235f050..acc05a1 100644
--- a/src/libide/gtk/menus.ui
+++ b/src/libide/gtk/menus.ui
@@ -42,15 +42,6 @@
</menu>
<menu id="perspectives-menu">
<section id="perspectives-menu-section">
- <item>
- <attribute name="accel"><alt>1</attribute>
- <attribute name="action">win.perspective</attribute>
- <attribute name="id">perspective-menu-editor</attribute>
- <attribute name="label" translatable="yes">Editor</attribute>
- <attribute name="role">normal</attribute>
- <attribute name="target">editor</attribute>
- <attribute name="verb-icon-name">builder-editor-symbolic</attribute>
- </item>
</section>
<section id="perspectives-menu-prefs-section">
<item>
@@ -201,74 +192,8 @@
</submenu>
</section>
</menu>
- <menu id="ide-editor-search-bar-entry-menu">
- <section id="ide-editor-search-bar-entry-menu-settings-section">
- <item>
- <attribute name="label" translatable="yes">Regular expressions</attribute>
- <attribute name="action">search-settings.regex-enabled</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Case sensitive</attribute>
- <attribute name="action">search-settings.case-sensitive</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Match whole word only</attribute>
- <attribute name="action">search-settings.at-word-boundaries</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Wrap Around</attribute>
- <attribute name="action">search-settings.wrap-around</attribute>
- </item>
- </section>
- <section id="ide-editor-search-bar-entry-menu-clipboard-section">
- <item>
- <attribute name="label" translatable="yes">Cu_t</attribute>
- <attribute name="action">entry.cut-clipboard</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Copy</attribute>
- <attribute name="action">entry.copy-clipboard</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Paste</attribute>
- <attribute name="action">entry.paste-clipboard</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Delete</attribute>
- <attribute name="action">entry.delete-selection</attribute>
- </item>
- </section>
- <section id="ide-editor-search-bar-entry-menu-selection-section">
- <item>
- <attribute name="label" translatable="yes">Select _All</attribute>
- <attribute name="action">entry.select-all</attribute>
- </item>
- </section>
- </menu>
- <menu id="ide-layout-stack-frame-menu">
- <section id="ide-layout-stack-frame-section">
- <attribute name="label" translatable="yes">Frame</attribute>
- <item>
- <attribute name="label" translatable="yes">Move Left</attribute>
- <attribute name="action">layoutstack.move-left</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Move Right</attribute>
- <attribute name="action">layoutstack.move-right</attribute>
- </item>
- <item>
- <attribute name="action">layoutgrid.close-stack</attribute>
- <attribute name="label" translatable="yes">Close</attribute>
- </item>
- </section>
- </menu>
<menu id="new-document-menu">
<section id="new-document-section">
- <item>
- <attribute name="id">new-file</attribute>
- <attribute name="label" translatable="yes">New File</attribute>
- <attribute name="action">editor.new-file</attribute>
- </item>
</section>
<section id="open-document-section">
<item>
@@ -278,52 +203,6 @@
</item>
</section>
</menu>
- <menu id="ide-editor-view-document-menu">
- <section id="editor-document-section">
- <attribute name="label" translatable="yes">Document</attribute>
- <item>
- <attribute name="id">editor-document-open-in-new-frame</attribute>
- <attribute name="label" translatable="yes">Open in New Frame</attribute>
- <attribute name="action">layoutstack.open-in-new-frame</attribute>
- <attribute name="target" type="s">""</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Split</attribute>
- <attribute name="action">layoutstack.split-view</attribute>
- <attribute name="target" type="s">""</attribute>
- <attribute name="verb-icon-name">builder-split-tab-symbolic</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Print…</attribute>
- <attribute name="action">editor-view.print</attribute>
- </item>
- </section>
- <section id="editor-document-preferences-section">
- <attribute name="after">editor-document-section</attribute>
- <item>
- <attribute name="label" translatable="yes">Document Preferences</attribute>
- <attribute name="action">editor-view.properties</attribute>
- </item>
- </section>
- <section id="editor-document-save-section">
- <attribute name="after">editor-document-preferences-section</attribute>
- <item>
- <attribute name="action">editor-view.save</attribute>
- <attribute name="label" translatable="yes">_Save</attribute>
- </item>
- <item>
- <attribute name="action">editor-view.save-as</attribute>
- <attribute name="label" translatable="yes">Save _As</attribute>
- </item>
- </section>
- <section id="editor-document-close-section">
- <attribute name="after">editor-document-save-section</attribute>
- <item>
- <attribute name="action">layoutstack.close-view</attribute>
- <attribute name="label" translatable="yes">Close</attribute>
- </item>
- </section>
- </menu>
<menu id="run-menu">
<section id="run-menu-section">
<item>
diff --git a/src/libide/libide.gresource.xml b/src/libide/libide.gresource.xml
index 89781c3..26f115d 100644
--- a/src/libide/libide.gresource.xml
+++ b/src/libide/libide.gresource.xml
@@ -99,6 +99,7 @@
<gresource prefix="/org/gnome/builder/plugins/editor">
<file alias="editor.plugin">editor/editor.plugin</file>
+ <file preprocess="xml-stripblanks" alias="gtk/menus.ui">editor/gtk/menus.ui</file>
</gresource>
<gresource prefix="/org/gnome/builder/plugins/directory">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]