bind_property_to_context


Description:

public unowned Binding? bind_property_to_context (Object source, string source_property, string target_key, BindingFlags flags = DEFAULT)

Binds a GObject property to a context value.

`target_key` must identify a registered variable compatible with the source property. GLib.BindingFlags.INVERT_BOOLEAN can only be used when both values are boolean. Other binding flags have the same meaning as in GLib.Object.bind_property.

Parameters:

source

the object that owns the source property

source_property

the source property name

target_key

the registered context key

flags

flags controlling the binding

Returns:

the newly created binding