aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/rox/patch-home-new-window31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/rox/patch-home-new-window b/sysutils/rox/patch-home-new-window
new file mode 100644
index 0000000..4587068
--- /dev/null
+++ b/sysutils/rox/patch-home-new-window
@@ -0,0 +1,31 @@
+$NetBSD
+
+Open home directory in new window if "New window on button 1"
+option is true.
+
+--- ROX-Filer/src/menu.c.orig 2021-06-14 07:52:45.427033914 +0200
++++ ROX-Filer/src/menu.c
+@@ -66,6 +66,7 @@
+ #include "bulk_rename.h"
+ #include "xtypes.h"
+ #include "log.h"
++#include "bind.h"
+
+ typedef enum {
+ FILE_COPY_ITEM,
+@@ -1710,9 +1711,12 @@ static void xterm_here(gpointer data, guint action, GtkWidget *widget)
+
+ static void home_directory(gpointer data, guint action, GtkWidget *widget)
+ {
+- g_return_if_fail(window_with_focus != NULL);
+-
+- filer_change_to(window_with_focus, home_dir, NULL);
++ if (o_new_button_1.int_value) {
++ filer_opendir(home_dir, NULL, NULL);
++ } else {
++ g_return_if_fail(window_with_focus != NULL);
++ filer_change_to(window_with_focus, home_dir, NULL);
++ }
+ }
+
+ static void show_bookmarks(gpointer data, guint action, GtkWidget *widget)