[ DestroysInstance ]
public unowned ExpressionWatch bind (Object target, string property, Object? this_)
Bind `target`'s property named `property` to `self`.
The value that `self` evaluates to is set via `g_object_set()` on `target`. This is repeated whenever `self` changes to ensure that the object's property stays synchronized with `self`.
If `self`'s evaluation fails, `target`'s `property` is not updated. You can ensure that this doesn't happen by using a fallback expression.
Note that this function takes ownership of `self`. If you want to keep it around, you should [[email protected]] it beforehand.
this |
a `GtkExpression` |
target |
the target object to bind to |
property |
name of the property on `target` to bind to |
this_ |
the this argument for the evaluation of `self` |
a `GtkExpressionWatch` |