[gnome-builder] debuggerui: restrict debugger controls
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] debuggerui: restrict debugger controls
- Date: Fri, 2 Jul 2021 14:56:43 +0000 (UTC)
commit 1513713c75b6a4e1148e0eb93539f24acdaf65b2
Author: Günther Wagner <info gunibert de>
Date: Fri Jul 2 12:47:10 2021 +0200
debuggerui: restrict debugger controls
Restrict the debugger controls to the primary workspace. Currently on
all workspaces are getting the controls added but it is more coherent to
restrict this to the primary workspace.
src/plugins/debuggerui/ide-debugger-editor-addin.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/debuggerui/ide-debugger-editor-addin.c
b/src/plugins/debuggerui/ide-debugger-editor-addin.c
index 40e5312ba..8c8fc02d2 100644
--- a/src/plugins/debuggerui/ide-debugger-editor-addin.c
+++ b/src/plugins/debuggerui/ide-debugger-editor-addin.c
@@ -379,6 +379,7 @@ ide_debugger_editor_addin_load (IdeEditorAddin *addin,
IdeContext *context;
IdeRunManager *run_manager;
IdeDebugManager *debug_manager;
+ IdeWorkspace *workspace;
IDE_ENTRY;
@@ -387,8 +388,9 @@ ide_debugger_editor_addin_load (IdeEditorAddin *addin,
self->editor = editor;
self->workbench = ide_widget_get_workbench (GTK_WIDGET (editor));
+ workspace = ide_widget_get_workspace (GTK_WIDGET (editor));
- if (!ide_workbench_has_project (self->workbench))
+ if (!ide_workbench_has_project (self->workbench) || !IDE_IS_PRIMARY_WORKSPACE (workspace))
return;
context = ide_widget_get_context (GTK_WIDGET (editor));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]