bind
Description:
public void bind (string key, Object object, string property, SettingsBindFlags flags)
Create a binding between the key in the this object and the property property of
object.
The binding uses the default GIO mapping functions to map between the settings and property values. These functions handle booleans, numeric types and string types in a straightforward way. Use [method@Gio.Settings.bind_with_mapping] if you need a custom mapping, or map between types that are not supported by the default mapping functions.
Unless the flags include [flags@Gio.SettingsBindFlags.NO_SENSITIVITY], this function also establishes a binding between the
writability of key and the `sensitive` property of object (if object has a boolean property by that name)
. See [method@Gio.Settings.bind_writable] for more details about writable bindings.
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 |
the settings object |
| key |
the key to bind |
| object |
the object with property to bind |
| property |
the name of the property to bind |
| flags |
flags for the binding |