[nautilus/wip/oholy/scripts-regression] files-view: Fix missing "Open Scripts Folder" menu item
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/scripts-regression] files-view: Fix missing "Open Scripts Folder" menu item
- Date: Fri, 4 Jun 2021 09:47:04 +0000 (UTC)
commit ab623a2d809c377b53d8d158f4126f6c892e5787
Author: Ondrej Holy <oholy redhat com>
Date: Fri Jun 4 11:42:46 2021 +0200
files-view: Fix missing "Open Scripts Folder" menu item
The "Scripts" submenu used to contain "Open Scripts Folder" menu item
but it is not there currently. This is a regression in GNOME/nautilus!464.
Let's show the menu item again.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1857
src/nautilus-files-view.c | 2 +-
src/resources/ui/nautilus-files-view-context-menus.ui | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 250c37264..af1b21795 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -5541,7 +5541,7 @@ update_scripts_menu (NautilusFilesView *view,
{
GObject *object;
- object = gtk_builder_get_object (builder, "scripts-submenu");
+ object = gtk_builder_get_object (builder, "scripts-submenu-section");
nautilus_gmenu_set_from_model (G_MENU (object),
G_MENU_MODEL (submenu));
diff --git a/src/resources/ui/nautilus-files-view-context-menus.ui
b/src/resources/ui/nautilus-files-view-context-menus.ui
index 0d71a927a..c827240bc 100644
--- a/src/resources/ui/nautilus-files-view-context-menus.ui
+++ b/src/resources/ui/nautilus-files-view-context-menus.ui
@@ -50,6 +50,8 @@
<attribute name="label" translatable="yes">_Scripts</attribute>
<attribute name="action">view.scripts</attribute>
<attribute name="hidden-when">action-disabled</attribute>
+ <section id="scripts-submenu-section">
+ </section>
<section>
<item>
<attribute name="label" translatable="yes">_Open Scripts Folder</attribute>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]