Settings.this

Creates a new GSettings object with a given schema, backend and path. It should be extremely rare that you ever want to use this function. It is made available for advanced use-cases (such as plugin systems that want to provide access to schemas loaded from custom locations, etc). At the most basic level, a GSettings object is a pure composition of 4 things: a GSettingsSchema, a GSettingsBackend, a path within that backend, and a GMainContext to which signals are dispatched. This constructor therefore gives you full control over constructing GSettings instances. The first 4 parameters are given directly as schema, backend and path, and the main context is taken from the thread-default (as per g_settings_new()). If backend is NULL then the default backend is used. If path is NULL then the path from the schema is used. It is an error f path is NULL and the schema has no path of its own or if path is non-NULL and not equal to the path that the schema does have. Since 2.32

Parameters

schema SettingsSchema

a GSettingsSchema

backend SettingsBackend

a GSettingsBackend. [allow-none]

path string

the path to use. [allow-none]

Throws

ConstructionException GTK+ fails to create the object.

Meta