[gnome-builder/gnome-builder-3-24] configuration: prepare configuration when changing runtimes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] configuration: prepare configuration when changing runtimes
- Date: Tue, 4 Apr 2017 22:13:34 +0000 (UTC)
commit 00198c77f51765ab16bc11eb2fa66554441bc185
Author: Christian Hergert <chergert redhat com>
Date: Fri Mar 31 11:44:41 2017 -0600
configuration: prepare configuration when changing runtimes
When changing the runtime, we might need to alter the installation prefix.
https://bugzilla.gnome.org/show_bug.cgi?id=780775
libide/buildsystem/ide-configuration.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libide/buildsystem/ide-configuration.c b/libide/buildsystem/ide-configuration.c
index 2fecd86..301a0d4 100644
--- a/libide/buildsystem/ide-configuration.c
+++ b/libide/buildsystem/ide-configuration.c
@@ -758,6 +758,7 @@ ide_configuration_set_runtime_id (IdeConfiguration *self,
{
IdeRuntimeManager *runtime_manager;
IdeContext *context;
+ IdeRuntime *runtime;
g_free (priv->runtime_id);
priv->runtime_id = g_strdup (runtime_id);
@@ -769,6 +770,10 @@ ide_configuration_set_runtime_id (IdeConfiguration *self,
runtime_manager = ide_context_get_runtime_manager (context);
ide_configuration_runtime_manager_items_changed (self, 0, 0, 0, runtime_manager);
+ runtime = ide_configuration_get_runtime (self);
+ if (runtime != NULL)
+ ide_runtime_prepare_configuration (runtime, self);
+
ide_configuration_set_dirty (self, TRUE);
ide_configuration_emit_changed (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]