Panel.LayeredSettings¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Settings Path |
||
r/w/co |
Schema Id |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class Panel.LayeredSettings(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(schema_id, path)¶
- Parameters:
- Return type:
- append(settings)¶
- Parameters:
settings (
Gio.Settings) –
- bind(key, object, property, flags)¶
- Parameters:
key (
str) –property (
str) –flags (
Gio.SettingsBindFlags) –
- bind_with_mapping(key, object, property, flags, get_mapping, set_mapping, *user_data)¶
- Parameters:
key (
str) – the settings key to bind. object (type GObject.Object.Object): the target object.property (
str) – the property on object to apply.flags (
Gio.SettingsBindFlags) – flags for the binding.get_mapping (
Gio.SettingsBindGetMapping) – the get mapping functionset_mapping (
Gio.SettingsBindSetMapping) – the set mapping functionuser_data (
objectorNone) – user data for get_mapping and set_mapping.
Creates a new binding similar to
Gio.Settings.bind_with_mapping() but applying from the resolved value via the layered settings.
- get_key(key)¶
- Parameters:
key (
str) – the name of the setting- Returns:
- Return type:
Gets the
Gio.SettingsSchemaKeydenoted by key.It is a programming error to call this with a key that does not exist.
- get_user_value(key)¶
- Parameters:
key (
str) – the key to get the user value for- Returns:
the user’s value, if set
- Return type:
GLib.VariantorNone
- get_value(key)¶
- Parameters:
key (
str) –- Returns:
- Return type:
Gets the value of key from the first layer that is modified.
- list_keys()¶
- Returns:
an array of keys that can be retrieved from the
Panel.LayeredSettings.- Return type:
[
str]
Lists the available keys.
- set_value(key, value)¶
- Parameters:
key (
str) –value (
GLib.Variant) –
Signal Details¶
- Panel.LayeredSettings.signals.changed(layered_settings, object)¶
- Signal Name:
changed- Flags:
- Parameters:
layered_settings (
Panel.LayeredSettings) – The object which received the signalobject (
str) –
Property Details¶
- Panel.LayeredSettings.props.path¶
- Name:
path- Type:
- Default Value:
- Flags:
Settings Path