mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 12:23:06 +02:00
Merge branch 'fix_3429' into 'main'
gsettings-tool: Always use the global_schema_source to lookup schemas in list-recursively Closes #3429 See merge request GNOME/glib!4183
This commit is contained in:
commit
02ffe6a779
@ -324,10 +324,15 @@ gsettings_list_recursively (void)
|
|||||||
for (i = 0; schemas[i]; i++)
|
for (i = 0; schemas[i]; i++)
|
||||||
{
|
{
|
||||||
GSettings *settings;
|
GSettings *settings;
|
||||||
|
GSettingsSchema *schema;
|
||||||
|
|
||||||
settings = g_settings_new (schemas[i]);
|
schema = g_settings_schema_source_lookup (global_schema_source, schemas[i], FALSE);
|
||||||
|
if (!schema)
|
||||||
|
continue;
|
||||||
|
settings = g_settings_new_full (schema, NULL, NULL);
|
||||||
list_recursively (settings);
|
list_recursively (settings);
|
||||||
g_object_unref (settings);
|
g_object_unref (settings);
|
||||||
|
g_settings_schema_unref (schema);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (schemas);
|
g_strfreev (schemas);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user