diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2018-08-14 23:03:08 +0200 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2018-08-20 13:38:23 +0200 |
commit | 88af16bddf6f292adadf446fa8f6226a41524167 (patch) | |
tree | 5d2493cb632e62cd278e4922a03bbaca98c2d2a9 /thunar/thunar-window.c | |
parent | 130870f0dd6aa50b5849a282d2669be0d9a44579 (diff) | |
download | thunar-88af16bddf6f292adadf446fa8f6226a41524167.tar.gz |
Add preference to open new thunar instances as tabs, if there is an existing thunar window
(Bug #13314)
Diffstat (limited to 'thunar/thunar-window.c')
-rw-r--r-- | thunar/thunar-window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index a5e718dd..016d383a 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -140,8 +140,6 @@ static gpointer thunar_window_notebook_create_window (GtkWidget gint x, gint y, ThunarWindow *window); -static void thunar_window_notebook_insert (ThunarWindow *window, - ThunarFile *directory); static void thunar_window_merge_custom_preferences (ThunarWindow *window); static gboolean thunar_window_bookmark_merge (gpointer user_data); static void thunar_window_merge_go_actions (ThunarWindow *window); @@ -1743,7 +1741,7 @@ thunar_window_notebook_create_window (GtkWidget *notebook, /* create new window */ application = thunar_application_get (); screen = gtk_window_get_screen (GTK_WINDOW (window)); - new_window = thunar_application_open_window (application, NULL, screen, NULL); + new_window = thunar_application_open_window (application, NULL, screen, NULL, TRUE); g_object_unref (application); /* make sure the new window has the same size */ @@ -1771,7 +1769,7 @@ thunar_window_notebook_create_window (GtkWidget *notebook, -static void +void thunar_window_notebook_insert (ThunarWindow *window, ThunarFile *directory) { @@ -2357,7 +2355,7 @@ thunar_window_action_open_new_window (GtkAction *action, /* popup a new window */ application = thunar_application_get (); new_window = THUNAR_WINDOW (thunar_application_open_window (application, window->current_directory, - gtk_widget_get_screen (GTK_WIDGET (window)), NULL)); + gtk_widget_get_screen (GTK_WIDGET (window)), NULL, TRUE)); g_object_unref (G_OBJECT (application)); /* if we have no origin view we are done */ |