Settings.with_path
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.26" ) ]
public Settings.with_path (string schema_id, string path)
[ Version ( since = "2.26" ) ]
public Settings.with_path (string schema_id, string path)
Creates a new Settings 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.
Parameters:
schema_id |
the id of the schema |
path |
the path to use |
Returns:
a new Settings object |