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:
Cole Robinson 2015-11-02 20:28:49 -05:00 committed by Matthias Clasen
parent 9d54f806e5
commit a3a97dca3a

View File

@ -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;