ObjectG.bindPropertyWithClosures

Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.

This function is the language bindings friendly version of g_object_bind_property_full(), using gobject.Closures instead of function pointers.

Parameters

sourceProperty string

the property on source to bind

target ObjectG

the target GObject

targetProperty string

the property on target to bind

flags GBindingFlags

flags to pass to gobject.Binding

transformTo Closure

a gobject.Closure wrapping the transformation function from the source to the target, or NULL to use the default

transformFrom Closure

a gobject.Closure wrapping the transformation function from the target to the source, or NULL to use the default

Return Value

Type: Binding

the gobject.Binding instance representing the binding between the two GObject instances. The binding is released whenever the gobject.Binding reference count reaches zero.

Meta

Since

2.26