[gnome-builder] build-manager: use ensure_config_async()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-manager: use ensure_config_async()
- Date: Tue, 16 Jan 2018 08:49:58 +0000 (UTC)
commit c1956bb6ee1e9cbf95add98e9525291a648911f0
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 15 20:29:01 2018 -0800
build-manager: use ensure_config_async()
This uses the new API to ensure the runtimes for a given
configuration. This is more robust because it allows runtime
providers to install things like sdk-extensions.
src/libide/buildsystem/ide-build-manager.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index 99acea24c..c17083bf7 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -381,7 +381,6 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
IdeRuntimeManager *runtime_manager;
IdeConfiguration *config;
IdeContext *context;
- const gchar *runtime_id;
IDE_ENTRY;
@@ -424,7 +423,6 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
config = ide_configuration_manager_get_current (config_manager);
runtime_manager = ide_context_get_runtime_manager (context);
- runtime_id = ide_configuration_get_runtime_id (config);
/*
* We want to set the pipeline before connecting things using the GInitable
@@ -454,11 +452,11 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
g_task_set_task_data (task, g_object_ref (self->pipeline), g_object_unref);
g_task_set_priority (task, G_PRIORITY_LOW);
g_task_set_return_on_cancel (task, TRUE);
- ide_runtime_manager_ensure_async (runtime_manager,
- runtime_id,
- cancellable,
- ide_build_manager_ensure_runtime_cb,
- g_steal_pointer (&task));
+ ide_runtime_manager_ensure_config_async (runtime_manager,
+ config,
+ cancellable,
+ ide_build_manager_ensure_runtime_cb,
+ g_steal_pointer (&task));
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ERROR_COUNT]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HAS_DIAGNOSTICS]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]