From 50b2197c978fbfe7fd323e211aaacf7d4260e902 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 20 May 2024 15:24:29 +0200 Subject: src/service.cpp: Look up schemas recursively g_settings_schema_source_get_default(void) documentation says that the returned source may consist of multiple sources from different directories, and that lookups against the default source should be done recursively to cover this situation. --- src/service.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/service.cpp b/src/service.cpp index b26664a..e734437 100644 --- a/src/service.cpp +++ b/src/service.cpp @@ -76,7 +76,7 @@ public: { if (ayatana_common_utils_is_lomiri()) { - GSettingsSchema *pSchema = g_settings_schema_source_lookup(pSource, "com.lomiri.touch.system", FALSE); + GSettingsSchema *pSchema = g_settings_schema_source_lookup(pSource, "com.lomiri.touch.system", TRUE); if (pSchema != NULL) { @@ -91,7 +91,7 @@ public: } else { - GSettingsSchema *pSchema = g_settings_schema_source_lookup(pSource, "org.ayatana.indicator.display", FALSE); + GSettingsSchema *pSchema = g_settings_schema_source_lookup(pSource, "org.ayatana.indicator.display", TRUE); if (pSchema != NULL) { @@ -134,7 +134,7 @@ public: } } - pSchema = g_settings_schema_source_lookup (pSource, sSchema, FALSE); + pSchema = g_settings_schema_source_lookup (pSource, sSchema, TRUE); if (pSchema != NULL) { @@ -146,7 +146,7 @@ public: g_error("No %s schema could be found", sSchema); } - pSchema = g_settings_schema_source_lookup (pSource, sCursorSchema, FALSE); + pSchema = g_settings_schema_source_lookup (pSource, sCursorSchema, TRUE); if (pSchema != NULL) { @@ -158,7 +158,7 @@ public: g_error("No %s schema could be found", sCursorSchema); } - pSchema = g_settings_schema_source_lookup (pSource, sMetacitySchema, FALSE); + pSchema = g_settings_schema_source_lookup (pSource, sMetacitySchema, TRUE); if (pSchema != NULL) { @@ -179,7 +179,7 @@ public: sSchema = "org.gnome.desktop.interface"; } - pSchema = g_settings_schema_source_lookup (pSource, sSchema, FALSE); + pSchema = g_settings_schema_source_lookup (pSource, sSchema, TRUE); if (pSchema != NULL) { -- cgit v1.2.3