summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-11-01 13:55:18 -0700
committerAntónio Fernandes <antoniof@gnome.org>2023-01-09 22:28:19 -0500
commit0f2974590dafc5d4f4be810227c48d31f5b51207 (patch)
tree25a6c8dabad44e7794c5bb9407ce1b1b62b91224
parentd27ccd161fdcc77298a5ad3ae77e47e424b685e5 (diff)
downloadnautilus-0f2974590dafc5d4f4be810227c48d31f5b51207.tar.gz
window: Open new tabs relative to the context menu tab
New tabs open up relative to the selected tab. Make new tabs open up relative to the tab in which the context menu was opened if applicable (otherwise open relative to the selected tab) (cherry picked from commit 8f727d6428b33d969f4f8c050001665f2b965e2b)
-rw-r--r--src/nautilus-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 15ece016d..7cb56b75b 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -603,7 +603,7 @@ nautilus_window_initialize_slot (NautilusWindow *window,
connect_slot (window, slot);
- current = adw_tab_view_get_selected_page (window->tab_view);
+ current = get_current_page (window);
page = adw_tab_view_add_page (window->tab_view, GTK_WIDGET (slot), current);
g_object_bind_property (slot, "allow-stop",