[gnome-builder] runner: return the runtime, not the configuration



commit dfcd921b8c1efc9f73fddc24d9fdb6ef3b0151fc
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 22 15:40:33 2017 -0700

    runner: return the runtime, not the configuration

 libide/runner/ide-runner.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/runner/ide-runner.c b/libide/runner/ide-runner.c
index 5aef874..70714c1 100644
--- a/libide/runner/ide-runner.c
+++ b/libide/runner/ide-runner.c
@@ -1151,6 +1151,7 @@ ide_runner_get_runtime (IdeRunner *self)
   IdeConfigurationManager *config_manager;
   IdeConfiguration *config;
   IdeContext *context;
+  IdeRuntime *runtime;
 
   g_return_val_if_fail (IDE_IS_RUNNER (self), NULL);
 
@@ -1160,8 +1161,9 @@ ide_runner_get_runtime (IdeRunner *self)
   context = ide_object_get_context (IDE_OBJECT (self));
   config_manager = ide_context_get_configuration_manager (context);
   config = ide_configuration_manager_get_current (config_manager);
+  runtime = ide_configuration_get_runtime (config);
 
-  return config != NULL ? g_object_ref (config) : NULL;
+  return runtime != NULL ? g_object_ref (runtime) : NULL;
 }
 
 gboolean


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