aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOPNA2608 <opna2608@protonmail.com>2024-05-20 15:24:29 +0200
committerOPNA2608 <opna2608@protonmail.com>2024-05-20 15:24:29 +0200
commit50b2197c978fbfe7fd323e211aaacf7d4260e902 (patch)
tree55e1b9c374666a85acb22c6fdcab185c1de564b4
parent4d95bad3cdd4da47d47124a15bbad2a241fc6b59 (diff)
downloadayatana-indicator-display-50b2197c978fbfe7fd323e211aaacf7d4260e902.tar.gz
ayatana-indicator-display-50b2197c978fbfe7fd323e211aaacf7d4260e902.tar.bz2
ayatana-indicator-display-50b2197c978fbfe7fd323e211aaacf7d4260e902.zip
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.
-rw-r--r--src/service.cpp12
1 files 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)
{