summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window-menus.c
diff options
context:
space:
mode:
authorYetoo1 <[email protected]>2019-12-25 00:32:31 -0800
committerraveit65 <[email protected]>2019-12-29 14:01:02 +0100
commit5374078bd1bc634ca8bb737204301151b5110cb1 (patch)
tree3f3085f4a1d5eb1c5f5749034a308eeac14a06d1 /src/caja-navigation-window-menus.c
parent24fa3a2fe7af65c9e91a40daae04258bf3fbc8a2 (diff)
downloadcaja-5374078bd1bc634ca8bb737204301151b5110cb1.tar.bz2
caja-5374078bd1bc634ca8bb737204301151b5110cb1.tar.xz
Keep path same when opening new window from an existing one
solved https://github.com/mate-desktop/caja/issues/1335
Diffstat (limited to 'src/caja-navigation-window-menus.c')
-rw-r--r--src/caja-navigation-window-menus.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/caja-navigation-window-menus.c b/src/caja-navigation-window-menus.c
index 3eedc31b..45652ffc 100644
--- a/src/caja-navigation-window-menus.c
+++ b/src/caja-navigation-window-menus.c
@@ -607,15 +607,12 @@ action_new_window_callback (GtkAction *action,
gpointer user_data)
{
CajaWindow *current_window;
- CajaWindow *new_window;
- current_window = CAJA_WINDOW (user_data);
- new_window = caja_application_create_navigation_window (
- current_window->application,
- gtk_window_get_screen (GTK_WINDOW (current_window)));
- caja_window_go_home (new_window);
+ current_window = CAJA_WINDOW (user_data);
+ caja_window_new_window (current_window);
}
+
static void
action_new_tab_callback (GtkAction *action,
gpointer user_data)