Settings.with_backend
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.26" ) ]
public Settings.with_backend (string schema_id, SettingsBackend backend)
[ Version ( since = "2.26" ) ]
public Settings.with_backend (string schema_id, SettingsBackend backend)
Creates a new [class@Gio.
Settings] object with the schema specified by schema_id and a given [class@Gio.SettingsBackend].
Creating a [class@Gio.Settings] object with a different backend allows accessing settings from a database other than the usual one. For example, it may make sense to pass a backend corresponding to the ‘defaults’ settings database on the system to get a settings object that modifies the system default settings instead of the settings for this user.
Parameters:
| schema_id |
the ID of the schema |
| backend |
the settings backend to use |
Returns:
|
a new [class@Gio.Settings] object |