Settings


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.26" ) ]
public Settings (string schema_id)

Creates a new Settings object with the schema specified by schema_id.

It is an error for the schema to not exist: schemas are an essential part of a program, as they provide type information. If schemas need to be dynamically loaded (for example, from an optional runtime dependency), lookup can be used to test for their existence before loading them.

Signals on the newly created Settings object will be dispatched via the thread-default MainContext in effect at the time of the call to Settings. The new Settings will hold a reference on the context. See push_thread_default.

Parameters:

schema_id

the id of the schema

Returns:

a new Settings object