[gnome-builder] config-manager: load project settings



commit 07d385b6a8dbef48ef3af555eb86f69981c66c7c
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 31 03:00:38 2018 -0800

    config-manager: load project settings
    
    This will be used to track config-id across runs of Builder.

 src/libide/config/ide-configuration-manager.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/config/ide-configuration-manager.c b/src/libide/config/ide-configuration-manager.c
index a1e51f509..3cc2ac67d 100644
--- a/src/libide/config/ide-configuration-manager.c
+++ b/src/libide/config/ide-configuration-manager.c
@@ -41,6 +41,7 @@ struct _IdeConfigurationManager
   GArray           *configs;
   IdeConfiguration *current;
   PeasExtensionSet *providers;
+  GSettings        *project_settings;
 
   guint             queued_save_source;
 };
@@ -262,6 +263,7 @@ ide_configuration_manager_dispose (GObject *object)
                                           self);
 
   g_cancellable_cancel (self->cancellable);
+  g_clear_object (&self->project_settings);
 
   G_OBJECT_CLASS (ide_configuration_manager_parent_class)->dispose (object);
 }
@@ -692,6 +694,8 @@ ide_configuration_manager_init_async (GAsyncInitable      *initable,
   context = ide_object_get_context (IDE_OBJECT (self));
   g_assert (IDE_IS_CONTEXT (context));
 
+  self->project_settings = ide_context_get_project_settings (context);
+
   self->providers = peas_extension_set_new (peas_engine_get_default (),
                                             IDE_TYPE_CONFIGURATION_PROVIDER,
                                             "context", context,


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