mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
gsettings: schema_list should use the passed schema's source
currently schema_list will iterate over the default SchemaSource list, and not the one associated with the passed in Schema. This means schema_list can give incorrect results for a Schema fetched from a non-default SchemaSource, like via new_from_directory. https://bugzilla.gnome.org/show_bug.cgi?id=757506
This commit is contained in:
parent
9d54f806e5
commit
a3a97dca3a
@ -1145,7 +1145,7 @@ g_settings_schema_list (GSettingsSchema *schema,
|
||||
|
||||
child_table = NULL;
|
||||
|
||||
for (source = schema_sources; source; source = source->parent)
|
||||
for (source = schema->source; source; source = source->parent)
|
||||
if ((child_table = gvdb_table_get_table (source->table, g_variant_get_string (child_schema, NULL))))
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user