Package: gtk

Function gtk:expression-bind

Lambda List

gtk:expression-bind (expression target property source)

Arguments

expression -- a gtk:expression instance
target -- a g:object instance for the target to bind to
property -- a string for the name of the property on target to bind to
source -- a g:object instance for the argument for the evaluation of expression

Return Value

The gtk:expression-watch instance.

Details

Bind target's property named property to expression. The value that expression evaluates to is set on target. This is repeated whenever expression changes to ensure that the object's property stays synchronized with expression.

If expression's evaluation fails, target's property is not updated. You can ensure that this does not happen by using a fallback expression.

Note that this function takes ownership of expression. If you want to keep it around, you should use the gtk:expression-ref function beforehand.
 

See also

2025-3-14