[gnome-builder/wip/chergert/debugger: 63/85] workbench: add debug-manager to workbench actions



commit d6aa321369b72bb2330e3378df3a13156ba70786
Author: Christian Hergert <chergert redhat com>
Date:   Sun Mar 26 02:06:33 2017 -0700

    workbench: add debug-manager to workbench actions

 libide/workbench/ide-workbench.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index dc92319..b61aaac 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -574,6 +574,7 @@ ide_workbench_set_context (IdeWorkbench *self,
 {
   g_autoptr(GSettings) settings = NULL;
   IdeBuildManager *build_manager;
+  IdeDebugManager *debug_manager;
   IdeRunManager *run_manager;
   IdeProject *project;
   guint delay_msec;
@@ -595,14 +596,12 @@ ide_workbench_set_context (IdeWorkbench *self,
                                transform_title, NULL, NULL, NULL);
 
   build_manager = ide_context_get_build_manager (context);
-  gtk_widget_insert_action_group (GTK_WIDGET (self),
-                                  "build-manager",
-                                  G_ACTION_GROUP (build_manager));
-
   run_manager = ide_context_get_run_manager (context);
-  gtk_widget_insert_action_group (GTK_WIDGET (self),
-                                  "run-manager",
-                                  G_ACTION_GROUP (run_manager));
+  debug_manager = ide_context_get_debug_manager (context);
+
+  gtk_widget_insert_action_group (GTK_WIDGET (self), "build-manager", G_ACTION_GROUP (build_manager));
+  gtk_widget_insert_action_group (GTK_WIDGET (self), "debug-manager", G_ACTION_GROUP (debug_manager));
+  gtk_widget_insert_action_group (GTK_WIDGET (self), "run-manager", G_ACTION_GROUP (run_manager));
 
   self->addins = peas_extension_set_new (peas_engine_get_default (),
                                          IDE_TYPE_WORKBENCH_ADDIN,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]