diff options
author | Colin Kinloch <colin@kinlo.ch> | 2022-11-18 20:33:06 +0000 |
---|---|---|
committer | Corey Berla <corey@berla.me> | 2022-11-18 20:33:06 +0000 |
commit | 62d4d633e2561621e1ef7eacc46338cd201d7f4c (patch) | |
tree | 8c8713a4231f0ed3980fed21f99c89311534eba4 /src/gtk | |
parent | 1e2ff51f2dde69ba458d789b54037959df3013a0 (diff) | |
download | nautilus-62d4d633e2561621e1ef7eacc46338cd201d7f4c.tar.gz |
placessidebar: Allow opening current directory in new tab or new window
Use "open-other" action for "Open in Tab" and "Open in new window"
so we can keep them enabled when we disable "Open" for the selected
row.
Fixes: #2596
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/nautilusgtkplacessidebar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c index 06b5c4abb..c536e892c 100644 --- a/src/gtk/nautilusgtkplacessidebar.c +++ b/src/gtk/nautilusgtkplacessidebar.c @@ -3324,8 +3324,8 @@ create_row_popover (NautilusGtkPlacesSidebar *sidebar, if (sidebar->open_flags & NAUTILUS_GTK_PLACES_OPEN_NEW_TAB) { - item = g_menu_item_new (_("Open in New _Tab"), "row.open"); - g_menu_item_set_action_and_target_value (item, "row.open", + item = g_menu_item_new (_("Open in New _Tab"), "row.open-other"); + g_menu_item_set_action_and_target_value (item, "row.open-other", g_variant_new_int32 (NAUTILUS_GTK_PLACES_OPEN_NEW_TAB)); g_menu_append_item (section, item); g_object_unref (item); @@ -3333,8 +3333,8 @@ create_row_popover (NautilusGtkPlacesSidebar *sidebar, if (sidebar->open_flags & NAUTILUS_GTK_PLACES_OPEN_NEW_WINDOW) { - item = g_menu_item_new (_("Open in New _Window"), "row.open"); - g_menu_item_set_action_and_target_value (item, "row.open", + item = g_menu_item_new (_("Open in New _Window"), "row.open-other"); + g_menu_item_set_action_and_target_value (item, "row.open-other", g_variant_new_int32 (NAUTILUS_GTK_PLACES_OPEN_NEW_WINDOW)); g_menu_append_item (section, item); g_object_unref (item); |