summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2015-11-02 20:28:49 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-02-16 10:57:58 -0500
commita3a97dca3aa227182088be47db75fc57f1186946 (patch)
tree93969ee654a23a84960b372824bed1e808996595
parent9d54f806e5668dfb6c7077db8ebf6abe23ba5320 (diff)
downloadglib-a3a97dca3aa227182088be47db75fc57f1186946.tar.gz
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
-rw-r--r--gio/gsettingsschema.c2
1 files changed, 1 insertions, 1 deletions
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;