Method

Gtk.Expression.bind

Declaration [src]

GtkExpressionWatch*
gtk_expression_bind (
  GtkExpression* self,
  GObject* target,
  const char* property,
  GObject* this_
)

Description [src]

Bind targets 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 selfs evaluation fails, targets 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 gtk_expression_ref() it beforehand.

Parameters

target GObject*
 

the target object to bind to

 Ownership is not transferred to the callee
property const char*
 

name of the property on target to bind to

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
this_ GObject*
 

the this argument for the evaluation of self

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: GtkExpressionWatch

a GtkExpressionWatch

Ownership is not transferred to the caller