SettingsSchemaSource.lookup

gio.settings_schema.SettingsSchema lookup(string schemaId, bool recursive)

Looks up a schema with the identifier schema_id in source.

This function is not required for normal uses of #GSettings but it may be useful to authors of plugin management systems or to those who want to introspect the content of schemas.

If the schema isn't found directly in source and recursive is true then the parent sources will also be checked.

If the schema isn't found, null is returned.

Parameters

schemaIda schema ID
recursivetrue if the lookup should be recursive

Returns

a new #GSettingsSchema