Settings


Description:

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

Creates a new [class@Gio.

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), [method@Gio.SettingsSchemaSource.lookup] can be used to test for their existence before loading them.

Signals on the newly created [class@Gio.Settings] object will be dispatched via the thread-default [struct@GLib.MainContext] in effect at the time of the call to [ctor@Gio.Settings.new]. The new [class@Gio.Settings] will hold a reference on the context. See [ method@GLib.MainContext.push_thread_default].

Parameters:

schema_id

the ID of the schema

Returns:

a new [class@Gio.Settings] object