[gnome-builder/wip/chergert/perspective] project-tree: remove panel on unload
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] project-tree: remove panel on unload
- Date: Mon, 14 Dec 2015 03:01:34 +0000 (UTC)
commit 8152d5f90901f5329eea6d482b76270bb3f5fe9b
Author: Christian Hergert <chergert redhat com>
Date: Sun Dec 13 18:41:33 2015 -0800
project-tree: remove panel on unload
plugins/project-tree/gb-project-tree-addin.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree-addin.c b/plugins/project-tree/gb-project-tree-addin.c
index 2086e51..b19f174 100644
--- a/plugins/project-tree/gb-project-tree-addin.c
+++ b/plugins/project-tree/gb-project-tree-addin.c
@@ -85,10 +85,11 @@ static void
gb_project_tree_addin_unload (IdeWorkbenchAddin *addin,
IdeWorkbench *workbench)
{
+ GbProjectTreeAddin *self = (GbProjectTreeAddin *)addin;
IdePerspective *editor;
GtkWidget *pane;
- g_assert (IDE_IS_WORKBENCH_ADDIN (addin));
+ g_assert (IDE_IS_WORKBENCH_ADDIN (self));
g_assert (IDE_IS_WORKBENCH (workbench));
editor = ide_workbench_get_perspective_by_name (workbench, "editor");
@@ -97,6 +98,8 @@ gb_project_tree_addin_unload (IdeWorkbenchAddin *addin,
pane = ide_layout_get_left_pane (IDE_LAYOUT (editor));
g_assert (pane != NULL);
+ ide_layout_pane_remove_page (IDE_LAYOUT_PANE (pane),
+ gtk_widget_get_parent (GTK_WIDGET (self->tree)));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]