Settings.newWithPath

Creates a new #GSettings object with the relocatable schema specified by schema_id and a given path.

You only need to do this if you want to directly create a settings object with a schema that doesn't have a specified path of its own. That's quite rare.

It is a programmer error to call this function for a schema that has an explicitly specified path.

It is a programmer error if path is not a valid path. A valid path begins and ends with '/' and does not contain two consecutive '/' characters.

class Settings
static
newWithPath
(
string schemaId
,
string path
)

Parameters

schemaId string

the id of the schema

path string

the path to use

Return Value

Type: gio.settings.Settings

a new #GSettings object