[gnome-builder] plugins/buildui: fix access to action muxer



commit da0edb0f9999bd503d0a97dc4bff3fc02e3fb2cb
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 23 14:34:38 2022 -0700

    plugins/buildui: fix access to action muxer

 src/plugins/buildui/gbp-buildui-targets-dialog.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-targets-dialog.c 
b/src/plugins/buildui/gbp-buildui-targets-dialog.c
index 288600adb..8e5271ba3 100644
--- a/src/plugins/buildui/gbp-buildui-targets-dialog.c
+++ b/src/plugins/buildui/gbp-buildui-targets-dialog.c
@@ -153,6 +153,7 @@ static void
 gbp_buildui_targets_dialog_set_context (GbpBuilduiTargetsDialog *self,
                                         IdeContext              *context)
 {
+  g_autoptr(IdeActionMuxer) muxer = NULL;
   IdeBuildManager *build_manager;
 
   IDE_ENTRY;
@@ -165,10 +166,11 @@ gbp_buildui_targets_dialog_set_context (GbpBuilduiTargetsDialog *self,
 
   self->busy = TRUE;
 
+  muxer = ide_context_ref_action_muxer (context);
   build_manager = ide_build_manager_from_context (context);
   gtk_widget_insert_action_group (GTK_WIDGET (self),
-                                  "build-manager",
-                                  G_ACTION_GROUP (build_manager));
+                                  "context",
+                                  G_ACTION_GROUP (muxer));
   ide_build_manager_list_targets_async (build_manager,
                                         NULL,
                                         gbp_buildui_targets_dialog_list_targets_cb,


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