[gnome-builder] libide/code: load paths for settings the same as preferences
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/code: load paths for settings the same as preferences
- Date: Sun, 28 Aug 2022 18:30:37 +0000 (UTC)
commit f7f1bd5a3c16c7ada60f9ff0b452582bd787323a
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 28 11:28:09 2022 -0700
libide/code: load paths for settings the same as preferences
Fixes #1762
src/libide/code/ide-gsettings-file-settings.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/libide/code/ide-gsettings-file-settings.c b/src/libide/code/ide-gsettings-file-settings.c
index 414beb570..758248442 100644
--- a/src/libide/code/ide-gsettings-file-settings.c
+++ b/src/libide/code/ide-gsettings-file-settings.c
@@ -107,7 +107,6 @@ static void
ide_gsettings_file_settings_apply (IdeGsettingsFileSettings *self)
{
g_autofree char *project_id = NULL;
- g_autofree char *path = NULL;
const char *lang_id;
IdeContext *context;
@@ -122,10 +121,9 @@ ide_gsettings_file_settings_apply (IdeGsettingsFileSettings *self)
context = ide_object_get_context (IDE_OBJECT (self));
project_id = ide_context_dup_project_id (context);
- path = g_strdup_printf ("/org/gnome/builder/editor/language/%s/", lang_id);
- self->language_settings = ide_settings_new_with_path (project_id,
- "org.gnome.builder.editor.language",
- path);
+ self->language_settings = ide_settings_new_relocatable_with_suffix (project_id,
+ "org.gnome.builder.editor.language",
+ lang_id);
for (guint i = 0; i < G_N_ELEMENTS (language_mappings); i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]