1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
|