[gnome-builder/wip/gtk4-port] plugins/editorui: fix creation of secondary editor workspace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/editorui: fix creation of secondary editor workspace
- Date: Thu, 7 Apr 2022 05:40:57 +0000 (UTC)
commit c0d811c1e3b82afc02ce690a932e866b22a72f90
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 6 22:39:33 2022 -0700
plugins/editorui: fix creation of secondary editor workspace
src/plugins/editorui/gbp-editorui-workspace-addin.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/editorui/gbp-editorui-workspace-addin.c
b/src/plugins/editorui/gbp-editorui-workspace-addin.c
index a46441355..54075ba9a 100644
--- a/src/plugins/editorui/gbp-editorui-workspace-addin.c
+++ b/src/plugins/editorui/gbp-editorui-workspace-addin.c
@@ -159,7 +159,7 @@ open_in_new_workspace (GSimpleAction *action,
GbpEditoruiWorkspaceAddin *self = user_data;
g_autoptr(IdePanelPosition) position = NULL;
IdeEditorWorkspace *workspace;
- IdeContext *context;
+ IdeWorkbench *workbench;
IdePage *page;
IdePage *split;
@@ -174,13 +174,13 @@ open_in_new_workspace (GSimpleAction *action,
if (!(split = ide_page_create_split (page)))
IDE_EXIT;
- context = ide_widget_get_context (GTK_WIDGET (page));
+ workbench = ide_workspace_get_workbench (self->workspace);
position = ide_panel_position_new ();
ide_panel_position_set_edge (position, PANEL_DOCK_POSITION_CENTER);
workspace = ide_editor_workspace_new (IDE_APPLICATION_DEFAULT);
- _ide_workspace_set_context (IDE_WORKSPACE (workspace), context);
+ ide_workbench_add_workspace (workbench, IDE_WORKSPACE (workspace));
ide_workspace_add_page (IDE_WORKSPACE (workspace), IDE_PAGE (split), position);
gtk_window_present (GTK_WINDOW (workspace));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]