Panel.LayeredSettings

g GObject.Object GObject.Object Panel.LayeredSettings Panel.LayeredSettings GObject.Object->Panel.LayeredSettings

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (schema_id, path)

append (settings)

bind (key, object, property, flags)

bind_with_mapping (key, object, property, flags, get_mapping, set_mapping, *user_data)

get_boolean (key)

get_default_value (key)

get_double (key)

get_int (key)

get_key (key)

get_string (key)

get_uint (key)

get_user_value (key)

get_value (key)

list_keys ()

set_boolean (key, val)

set_double (key, val)

set_int (key, val)

set_string (key, val)

set_uint (key, val)

set_value (key, value)

unbind (property)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

path

str

r/w/co

Settings Path

schema-id

str

r/w/co

Schema Id

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Fields

Inherited:

GObject.Object (1)

Class Details

class Panel.LayeredSettings(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Panel.LayeredSettingsClass

classmethod new(schema_id, path)
Parameters:
  • schema_id (str) –

  • path (str) –

Return type:

Panel.LayeredSettings

append(settings)
Parameters:

settings (Gio.Settings) –

bind(key, object, property, flags)
Parameters:
bind_with_mapping(key, object, property, flags, get_mapping, set_mapping, *user_data)
Parameters:

Creates a new binding similar to g_settings_bind_with_mapping() but applying from the resolved value via the layered settings.

get_boolean(key)
Parameters:

key (str) –

Return type:

bool

get_default_value(key)
Parameters:

key (str) –

Return type:

GLib.Variant

get_double(key)
Parameters:

key (str) –

Return type:

float

get_int(key)
Parameters:

key (str) –

Return type:

int

get_key(key)
Parameters:

key (str) – the name of the setting

Returns:

a Gio.SettingsSchemaKey

Return type:

Gio.SettingsSchemaKey

Gets the Gio.SettingsSchemaKey denoted by key.

It is a programming error to call this with a key that does not exist.

get_string(key)
Parameters:

key (str) –

Return type:

str

get_uint(key)
Parameters:

key (str) –

Return type:

int

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.Variant or None

get_value(key)
Parameters:

key (str) –

Returns:

a GLib.Variant

Return type:

GLib.Variant

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_boolean(key, val)
Parameters:
set_double(key, val)
Parameters:
set_int(key, val)
Parameters:
set_string(key, val)
Parameters:
set_uint(key, val)
Parameters:
set_value(key, value)
Parameters:
unbind(property)
Parameters:

property (str) –

Signal Details

Panel.LayeredSettings.signals.changed(layered_settings, object)
Signal Name:

changed

Flags:

RUN_LAST, DETAILED

Parameters:

Property Details

Panel.LayeredSettings.props.path
Name:

path

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Settings Path

Panel.LayeredSettings.props.schema_id
Name:

schema-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Schema Id