From 5078ab8f641ca672da32f54526547d1b6e9bbba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 14 Jun 2021 07:36:27 +0200 Subject: sysutils/rox: Add patch-home-new-window --- sysutils/rox/patch-home-new-window | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sysutils/rox/patch-home-new-window (limited to 'sysutils/rox') 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) -- cgit v1.2.3