[dconf-editor] Support built-in relocatable schema mappings
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Support built-in relocatable schema mappings
- Date: Wed, 6 Dec 2017 22:39:01 +0000 (UTC)
commit 37eb61aa211683211770d0cfb78f44db8a8ae23c
Author: Davi da Silva Böger <dsboger gmail com>
Date: Wed Dec 6 02:35:25 2017 -0200
Support built-in relocatable schema mappings
editor/dconf-model.vala | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index ff0a1df..9f6b2a5 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -614,6 +614,7 @@ public class SettingsModel : Object
HashTable<string, RelocatableSchemaInfo> relocatable_schema_paths = new HashTable<string,
RelocatableSchemaInfo> (str_hash, str_equal);
parse_relocatable_schemas_user_paths (relocatable_schema_paths);
+ create_relocatable_schemas_built_in_paths (relocatable_schema_paths);
create_relocatable_schemas_views (relocatable_schema_paths);
@@ -657,6 +658,16 @@ public class SettingsModel : Object
add_relocatable_schema_info (relocatable_schema_paths, schema_id, path_spec);
}
+ private void create_relocatable_schemas_built_in_paths (HashTable<string, RelocatableSchemaInfo>
relocatable_schema_paths)
+ {
+ if (settings_schema_source == null)
+ return;
+
+ add_relocatable_schema_info (relocatable_schema_paths, "org.gnome.desktop.app-folders.folder",
"/org/gnome/desktop/app-folders/folders//");
+ add_relocatable_schema_info (relocatable_schema_paths, "org.gnome.Terminal.Legacy.Profile",
"/org/gnome/terminal/legacy/profiles://");
+ // TODO add more well-known mappings
+ }
+
private void add_relocatable_schema_info (HashTable<string, RelocatableSchemaInfo> info_map, string
schema_id, ...)
{
RelocatableSchemaInfo? schema_info = info_map.lookup (schema_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]