[gnome-builder/wip/gtk4-port] plugins/project-tree: move containing folder items to submenu



commit 36319430b433feee8dd3c01e5ca49a065a0feccc
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 2 18:24:18 2022 -0700

    plugins/project-tree: move containing folder items to submenu

 src/plugins/ls/gtk/menus.ui           | 18 ++++++++----------
 src/plugins/project-tree/gtk/menus.ui | 25 ++++++++++++++-----------
 2 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/src/plugins/ls/gtk/menus.ui b/src/plugins/ls/gtk/menus.ui
index 0f783c288..6e10ebdf3 100644
--- a/src/plugins/ls/gtk/menus.ui
+++ b/src/plugins/ls/gtk/menus.ui
@@ -1,15 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <menu id="project-tree-menu">
-    <section id="project-tree-menu-open-section">
-      <item>
-        <attribute name="id">project-tree-menu-open-editor</attribute>
-        <attribute name="hidden-when">action-disabled</attribute>
-        <attribute name="label" translatable="yes">Open in _Folder Listing</attribute>
-        <attribute name="action">project-tree.open-with-hint</attribute>
-        <attribute name="target" type="s">'ls'</attribute>
-      </item>
-    </section>
+  <menu id="project-tree-menu-open-containing-folder-menu">
+    <item>
+      <attribute name="id">project-tree-menu-open-editor</attribute>
+      <attribute name="hidden-when">action-disabled</attribute>
+      <attribute name="label" translatable="yes">With _Folder Listing</attribute>
+      <attribute name="action">project-tree.open-with-hint</attribute>
+      <attribute name="target" type="s">'ls'</attribute>
+    </item>
   </menu>
   <menu id="ide-source-view-popup-menu">
     <section id="ide-source-view-popup-menu-files-section">
diff --git a/src/plugins/project-tree/gtk/menus.ui b/src/plugins/project-tree/gtk/menus.ui
index 57e5c73bf..32a74d07d 100644
--- a/src/plugins/project-tree/gtk/menus.ui
+++ b/src/plugins/project-tree/gtk/menus.ui
@@ -33,18 +33,21 @@
           </item>
         </section>
       </submenu>
-      <item>
-        <attribute name="id">project-tree-menu-open-folder</attribute>
-        <attribute name="hidden-when">action-disabled</attribute>
+      <submenu id="project-tree-menu-open-containing-folder-menu">
         <attribute name="label" translatable="yes">Open _Containing Folder</attribute>
-        <attribute name="action">project-tree.open-containing-folder</attribute>
-      </item>
-      <item>
-        <attribute name="id">project-tree-menu-open-terminal</attribute>
-        <attribute name="hidden-when">action-disabled</attribute>
-        <attribute name="label" translatable="yes">Open in _Terminal</attribute>
-        <attribute name="action">project-tree.open-in-terminal</attribute>
-      </item>
+        <item>
+          <attribute name="id">project-tree-menu-open-folder</attribute>
+          <attribute name="hidden-when">action-disabled</attribute>
+          <attribute name="label" translatable="yes">With File _Browser</attribute>
+          <attribute name="action">project-tree.open-containing-folder</attribute>
+        </item>
+        <item>
+          <attribute name="id">project-tree-menu-open-terminal</attribute>
+          <attribute name="hidden-when">action-disabled</attribute>
+          <attribute name="label" translatable="yes">With _Terminal</attribute>
+          <attribute name="action">project-tree.open-in-terminal</attribute>
+        </item>
+      </submenu>
     </section>
     <section id="project-tree-menu-find-section">
     </section>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]