Class (GI Struct)

Gio-2.0GioSettingsSchemaSourceSince 2.32

This is an opaque structure type. You may not access it directly.

2.32

Index

Constructors

Properties

Methods

  • Lists the schemas in a given source.

    If recursive is true then include parent sources. If false then only include the schemas from one source (ie: one directory). You probably want true.

    Non-relocatable schemas are those for which you can call g_settings_new(). Relocatable schemas are those for which you must use g_settings_new_with_path().

    Do not call this function from normal programs. This is designed for use by database editors, commandline tools, etc.

    Parameters

    • recursive: boolean

      if we should recurse

    Returns [string[], string[]]

  • Looks up a schema with the identifier schema_id in source.

    This function is not required for normal uses of Gio.Settings 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

    • schema_id: string

      a schema ID

    • recursive: boolean

      true if the lookup should be recursive

    Returns SettingsSchema

    a new Gio.SettingsSchema

  • Gets the default system schema source.

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

    If no schemas are installed, null will be returned.

    The returned source may actually consist of multiple schema sources from different directories, depending on which directories were given in XDG_DATA_DIRS and GSETTINGS_SCHEMA_DIR. For this reason, all lookups performed against the default source should probably be done recursively.

    Returns SettingsSchemaSource