[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 10:42:20 +0000 (UTC)
commit 2fbd3854fbbb7665bf524321f1281fb735442f84
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 commit bd81bd89.
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 | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
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..27764c9a7 100644
--- a/src/resources/ui/nautilus-files-view-context-menus.ui
+++ b/src/resources/ui/nautilus-files-view-context-menus.ui
@@ -46,10 +46,11 @@
</section>
<section id="open-with-default-application-section">
</section>
- <submenu id="scripts-submenu">
+ <submenu>
<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>
<item>
<attribute name="label" translatable="yes">_Open Scripts Folder</attribute>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]