SettingsSandwich.bindWithMapping

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

class SettingsSandwich
void
bindWithMapping
(
string key
,
void* object
,
string property
,
GSettingsBindFlags flags
,
GSettingsBindGetMapping getMapping
,
GSettingsBindSetMapping setMapping
,
void* userData
,
GDestroyNotify destroy
)

Parameters

key
Type: string

the settings key to bind. @object (type GObject.Object): the target object.

property
Type: string

the property on @object to apply.

flags
Type: GSettingsBindFlags

flags for the binding.

getMapping
Type: GSettingsBindGetMapping

the get mapping function

setMapping
Type: GSettingsBindSetMapping

the set mapping function

userData
Type: void*

user data for @get_mapping and @set_mapping.

destroy
Type: GDestroyNotify

destroy notify for @user_data.

Meta