summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-07-31 21:52:07 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-08-01 02:13:18 +0100
commitce055de037da1edc643ca3e47c40c21ae08c6152 (patch)
tree478b8871fa5bb8c8dbfa5327a2d8120994aaf089
parente88b7d5882c503910b1c3fa8b89d1bf49ddbcff3 (diff)
downloadnautilus-ce055de037da1edc643ca3e47c40c21ae08c6152.tar.gz
toolbar: Move "Visible Columns" menu item to folder menu
It would be nice to use gtk_column_view_column_set_header_menu(), but unfortunately our GtkGestureClick for background context menu overrules it. Also, it would be bad for accessibility because there is no way to get keyboard focus in the column headers. The folder menu is a fitting new home because: 1. The column changes are saved only for this folder; 2. If the user right clicks the columns, expecting an option to change columns, the option will be right there. This is part of an effort to drop the view menu.
-rw-r--r--src/resources/ui/nautilus-files-view-context-menus.ui5
-rw-r--r--src/resources/ui/nautilus-toolbar.ui7
2 files changed, 5 insertions, 7 deletions
diff --git a/src/resources/ui/nautilus-files-view-context-menus.ui b/src/resources/ui/nautilus-files-view-context-menus.ui
index ebbe9f5d8..44c58b5ca 100644
--- a/src/resources/ui/nautilus-files-view-context-menus.ui
+++ b/src/resources/ui/nautilus-files-view-context-menus.ui
@@ -24,6 +24,11 @@
<attribute name="action">win.stop</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
+ <item>
+ <attribute name="label" translatable="yes">_Visible Columns…</attribute>
+ <attribute name="action">view.visible-columns</attribute>
+ <attribute name="hidden-when">action-missing</attribute>
+ </item>
<section>
<item>
<attribute name="label" translatable="yes">_Open With Other Application</attribute>
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui
index 682fff316..e42bb2c46 100644
--- a/src/resources/ui/nautilus-toolbar.ui
+++ b/src/resources/ui/nautilus-toolbar.ui
@@ -13,13 +13,6 @@
Its contents is provided by the view.
-->
</section>
- <section>
- <item>
- <attribute name="label" translatable="yes">_Visible Columns…</attribute>
- <attribute name="action">view.visible-columns</attribute>
- <attribute name="hidden-when">action-missing</attribute>
- </item>
- </section>
</menu>
<menu id="app_menu">
<section>