bind_context_to_property


Description:

public unowned Binding? bind_context_to_property (string source_key, Object target, string target_property, BindingFlags flags = DEFAULT)

Binds a context value to a GObject property.

`source_key` must identify a registered variable compatible with the target 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_key

the registered context key

target

the object that owns the target property

target_property

the target property name

flags

flags controlling the binding

Returns:

the newly created binding