bind_with_mapping


Description:

public void bind_with_mapping (string key, Object object, string property, SettingsBindFlags flags, SettingsBindGetMappingShared get_mapping, SettingsBindSetMappingShared set_mapping, void* user_data, DestroyNotify? notify)

Create a binding between the key in the this object and the property property of object.

The binding uses the provided mapping functions to map between settings and property values.

Note that the lifecycle of the binding is tied to object, and that you can have only one binding per object property. If you bind the same property twice on the same object, the second binding overrides the first one.

Parameters:

this

a Settings object

key

the key to bind

object

a Object

property

the name of the property to bind

flags

flags for the binding

get_mapping

a function that gets called to convert values from this to object, or null to use the default GIO mapping

set_mapping

a function that gets called to convert values from object to this, or null to use the default GIO mapping

destroy

DestroyNotify function for user_data

user_data

data that gets passed to get_mapping and set_mapping