diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-14 07:36:27 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-14 08:00:06 +0200 |
commit | 5078ab8f641ca672da32f54526547d1b6e9bbba9 (patch) | |
tree | e0a8c43be318c248afef30f514492e0df9c2a379 | |
parent | 6e54abdbac5b0316b56cfec9815de800aae3dd01 (diff) | |
download | patches-5078ab8f641ca672da32f54526547d1b6e9bbba9.tar.gz |
sysutils/rox: Add patch-home-new-window
-rw-r--r-- | sysutils/rox/patch-home-new-window | 31 |
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) |