bind_with_mapping
Description:
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 |
set_mapping |
a function that gets called to convert values from |
destroy |
DestroyNotify function for |
user_data |
data that gets passed to |