[gnome-builder] ls: Don't close it after file opening when opened from the project tree
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ls: Don't close it after file opening when opened from the project tree
- Date: Sun, 27 Dec 2020 18:41:13 +0000 (UTC)
commit 593e11a993f849a04b1aa1a59a7ae65df32ab3f1
Author: vanadiae <vanadiae35 gmail com>
Date: Sun Dec 27 19:13:07 2020 +0100
ls: Don't close it after file opening when opened from the project tree
Currently when choosing a file in a folder browser opened from the
project tree menu, the folder browser is closed.
But this behavior is inconvenient when someone wants to use the folder
browser as a persistent and pane-able view of a folder.
So this commit changes this behavior to let the folder browser opened
after opening a file. It is still possible to use it as a vim-like
directory listing, by using the "Switch to Folder" item in the right
click menu in an editor view.
src/plugins/ls/gbp-ls-workbench-addin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/ls/gbp-ls-workbench-addin.c b/src/plugins/ls/gbp-ls-workbench-addin.c
index dd73950e4..77d86b2f8 100644
--- a/src/plugins/ls/gbp-ls-workbench-addin.c
+++ b/src/plugins/ls/gbp-ls-workbench-addin.c
@@ -136,7 +136,7 @@ gbp_ls_workbench_addin_open_async (IdeWorkbenchAddin *addin,
current_frame = gtk_widget_get_ancestor (GTK_WIDGET (current_page), IDE_TYPE_FRAME);
view = g_object_new (GBP_TYPE_LS_PAGE,
- "close-on-activate", TRUE,
+ "close-on-activate", FALSE,
"visible", TRUE,
NULL);
if (current_frame != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]