[gnome-builder/wip/gtk4-port: 1612/1774] plugins/jhbuild: use same implementation for run/build




commit 39e60a8f5ea71640ed5a05ef1b40944b7f0f1690
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 22 17:06:28 2022 -0700

    plugins/jhbuild: use same implementation for run/build

 src/plugins/jhbuild/gbp-jhbuild-runtime.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/jhbuild/gbp-jhbuild-runtime.c b/src/plugins/jhbuild/gbp-jhbuild-runtime.c
index c3ef4f374..c9eff6294 100644
--- a/src/plugins/jhbuild/gbp-jhbuild-runtime.c
+++ b/src/plugins/jhbuild/gbp-jhbuild-runtime.c
@@ -130,8 +130,8 @@ gbp_jhbuild_runtime_run_handler (IdeRunContext       *run_context,
 }
 
 static void
-gbp_jhbuild_runtime_prepare_to_run (IdeRuntime    *runtime,
-                                    IdeRunContext *run_context)
+gbp_jhbuild_runtime_prepare_run_context (IdeRuntime    *runtime,
+                                         IdeRunContext *run_context)
 {
   GbpJhbuildRuntime *self = (GbpJhbuildRuntime *)runtime;
 
@@ -261,7 +261,8 @@ gbp_jhbuild_runtime_class_init (GbpJhbuildRuntimeClass *klass)
   runtime_class->create_launcher = gbp_jhbuild_runtime_create_launcher;
   runtime_class->create_runner = gbp_jhbuild_runtime_create_runner;
   runtime_class->prepare_configuration = gbp_jhbuild_runtime_prepare_configuration;
-  runtime_class->prepare_to_run = gbp_jhbuild_runtime_prepare_to_run;
+  runtime_class->prepare_to_build = gbp_jhbuild_runtime_prepare_run_context;
+  runtime_class->prepare_to_run = gbp_jhbuild_runtime_prepare_run_context;
 
   properties [PROP_EXECUTABLE_PATH] =
     g_param_spec_string ("executable-path", NULL, NULL,


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