[gnome-builder] libide/editor: move editor menus to plugins/editorui
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-builder] libide/editor: move editor menus to plugins/editorui
- Date: Thu, 28 Jul 2022 18:09:45 +0000 (UTC)
commit bac8107763198c945ced40b5c8521cad564186ea
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jul 28 11:03:23 2022 -0700
    libide/editor: move editor menus to plugins/editorui
    
    This is where the keybindings live too, so keep them together.
 src/libide/editor/gtk/menus.ui    | 27 ++---------------
 src/plugins/editorui/gtk/menus.ui | 63 ++++++++++++++++++++++++++++-----------
 2 files changed, 48 insertions(+), 42 deletions(-)
---
diff --git a/src/libide/editor/gtk/menus.ui b/src/libide/editor/gtk/menus.ui
index 7c24c8eb6..63d0fe820 100644
--- a/src/libide/editor/gtk/menus.ui
+++ b/src/libide/editor/gtk/menus.ui
@@ -61,29 +61,8 @@
     </section>
     <section id="ide-editor-page-preview-section"/>
     <section id="ide-editor-page-reveal-section"/>
-    <section id="ide-editor-page-save-section">
-      <item>
-        <attribute name="label" translatable="yes">Save</attribute>
-        <attribute name="action">page.save</attribute>
-        <attribute name="accel"><ctrl>s</attribute>
-      </item>
-      <item>
-        <attribute name="label" translatable="yes">Save _As</attribute>
-        <attribute name="action">page.save-as</attribute>
-        <attribute name="accel"><ctrl><shift>s</attribute>
-      </item>
-    </section>
-    <section id="ide-editor-page-search-section">
-      <item>
-        <attribute name="label" translatable="yes">Find…</attribute>
-        <attribute name="action">page.search.begin-find</attribute>
-        <attribute name="accel"><ctrl>f</attribute>
-      </item>
-      <item>
-        <attribute name="label" translatable="yes">Find/Replace…</attribute>
-        <attribute name="action">page.search.begin-replace</attribute>
-        <attribute name="accel"><ctrl>h</attribute>
-      </item>
-    </section>
+    <section id="ide-editor-page-search-section"/>
+    <section id="ide-editor-page-save-section"/>
+    <section id="ide-editor-page-print-section"/>
   </menu>
 </interface>
diff --git a/src/plugins/editorui/gtk/menus.ui b/src/plugins/editorui/gtk/menus.ui
index e5834a73e..4dbfc1528 100644
--- a/src/plugins/editorui/gtk/menus.ui
+++ b/src/plugins/editorui/gtk/menus.ui
@@ -98,24 +98,6 @@
       </item>
     </section>
   </menu>
-  <menu id="ide-editor-page-menu">
-    <section id="ide-editor-page-document-section">
-      <attribute name="label" translatable="yes">Document</attribute>
-      <item>
-        <attribute name="label" translatable="yes">Open in New Frame</attribute>
-        <attribute name="id">editor-document-open-in-new-workspace</attribute>
-        <attribute name="action">editorui.open-in-new-frame</attribute>
-      </item>
-      <item>
-        <attribute name="label" translatable="yes">Open in New Workspace…</attribute>
-        <attribute name="id">editor-document-open-in-new-workspace</attribute>
-        <attribute name="action">editorui.open-in-new-workspace</attribute>
-      </item>
-      <item>
-        <attribute name="label" translatable="yes">Print…</attribute>
-      </item>
-    </section>
-  </menu>
   <menu id="ide-editor-workspace-menu">
     <section id="ide-editor-workspace-menu-placeholder1">
       <item>
@@ -154,4 +136,49 @@
       </item>
     </section>
   </menu>
+  <menu id="ide-editor-page-menu">
+    <section id="ide-editor-page-document-section">
+      <item>
+        <attribute name="label" translatable="yes">Open in New Frame</attribute>
+        <attribute name="id">editor-document-open-in-new-workspace</attribute>
+        <attribute name="action">editorui.open-in-new-frame</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Open in New Workspace…</attribute>
+        <attribute name="id">editor-document-open-in-new-workspace</attribute>
+        <attribute name="action">editorui.open-in-new-workspace</attribute>
+      </item>
+    </section>
+    <section id="ide-editor-page-save-section">
+      <item>
+        <attribute name="label" translatable="yes">Save</attribute>
+        <attribute name="action">page.save</attribute>
+        <attribute name="accel"><ctrl>s</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Save _As</attribute>
+        <attribute name="action">page.save-as</attribute>
+        <attribute name="accel"><ctrl><shift>s</attribute>
+      </item>
+    </section>
+    <section id="ide-editor-page-search-section">
+      <item>
+        <attribute name="label" translatable="yes">Find…</attribute>
+        <attribute name="action">page.search.begin-find</attribute>
+        <attribute name="accel"><ctrl>f</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">Find/Replace…</attribute>
+        <attribute name="action">page.search.begin-replace</attribute>
+        <attribute name="accel"><ctrl>h</attribute>
+      </item>
+    </section>
+    <section id="ide-editor-page-print-section">
+      <item>
+        <attribute name="label" translatable="yes">Print…</attribute>
+        <attribute name="action">page.print</attribute>
+        <attribute name="accel"><control>p</attribute>
+      </item>
+    </section>
+  </menu>
 </interface>
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]