[gnome-builder/wip/chergert/bug1: 69/101] debugger: cleanup editor addin during unload
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1: 69/101] debugger: cleanup editor addin during unload
- Date: Sat, 2 Sep 2017 01:36:11 +0000 (UTC)
commit 7bc5cc90dd38a3c55c7469d0ce27c62714f96a7d
Author: Christian Hergert <chergert redhat com>
Date: Tue Aug 29 01:33:23 2017 -0700
debugger: cleanup editor addin during unload
libide/debugger/ide-debugger-editor-addin.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-editor-addin.c b/libide/debugger/ide-debugger-editor-addin.c
index 24350df..c0a859a 100644
--- a/libide/debugger/ide-debugger-editor-addin.c
+++ b/libide/debugger/ide-debugger-editor-addin.c
@@ -438,12 +438,22 @@ ide_debugger_editor_addin_unload (IdeEditorAddin *addin,
IdeEditorPerspective *editor)
{
IdeDebuggerEditorAddin *self = (IdeDebuggerEditorAddin *)addin;
+ IdeRunManager *run_manager;
+ IdeContext *context;
IDE_ENTRY;
g_assert (IDE_IS_DEBUGGER_EDITOR_ADDIN (self));
g_assert (IDE_IS_EDITOR_PERSPECTIVE (editor));
+ context = ide_workbench_get_context (self->workbench);
+ run_manager = ide_context_get_run_manager (context);
+
+ gtk_widget_insert_action_group (GTK_WIDGET (self->workbench), "debugger", NULL);
+
+ /* Remove the handler to initiate the debugger */
+ ide_run_manager_remove_handler (run_manager, "debugger");
+
g_clear_object (&self->debugger_signals);
g_clear_object (&self->debug_manager_signals);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]