[gnome-builder/wip/gtk4-port] plugins/project-tree: use pane helpers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/project-tree: use pane helpers
- Date: Mon, 18 Apr 2022 13:21:08 +0000 (UTC)
commit 59a0d410745eb392010ffba73a23d49ea1ddb739
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 18 06:10:51 2022 -0700
plugins/project-tree: use pane helpers
src/plugins/project-tree/gbp-project-tree-workspace-addin.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/project-tree/gbp-project-tree-workspace-addin.c
b/src/plugins/project-tree/gbp-project-tree-workspace-addin.c
index 1672f0662..0aabc1473 100644
--- a/src/plugins/project-tree/gbp-project-tree-workspace-addin.c
+++ b/src/plugins/project-tree/gbp-project-tree-workspace-addin.c
@@ -44,10 +44,11 @@ gbp_project_tree_workspace_addin_load (IdeWorkspaceAddin *addin,
g_assert (GBP_IS_PROJECT_TREE_WORKSPACE_ADDIN (self));
g_assert (IDE_IS_WORKSPACE (workspace));
- self->pane = g_object_new (GBP_TYPE_PROJECT_TREE_PANE,
- "title", _("Project Tree"),
- "icon-name", "view-list-symbolic",
- NULL);
+ ide_pane_observe (g_object_new (GBP_TYPE_PROJECT_TREE_PANE,
+ "title", _("Project Tree"),
+ "icon-name", "view-list-symbolic",
+ NULL),
+ (IdePane **)&self->pane);
position = ide_panel_position_new ();
ide_panel_position_set_edge (position, PANEL_DOCK_POSITION_START);
@@ -66,7 +67,7 @@ gbp_project_tree_workspace_addin_unload (IdeWorkspaceAddin *addin,
g_assert (GBP_IS_PROJECT_TREE_WORKSPACE_ADDIN (self));
g_assert (IDE_IS_WORKSPACE (workspace));
- g_clear_pointer ((IdePane **)&self->pane, ide_pane_destroy);
+ ide_clear_pane ((IdePane **)&self->pane);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]