From a3a97dca3aa227182088be47db75fc57f1186946 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 2 Nov 2015 20:28:49 -0500 Subject: [PATCH] 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 --- gio/gsettingsschema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c index a0265e7f8..8ed800ab2 100644 --- a/gio/gsettingsschema.c +++ b/gio/gsettingsschema.c @@ -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;