Gtk.ExpressionWatch

Fields

None

Methods

evaluate (value)

ref ()

unref ()

unwatch ()

Details

class Gtk.ExpressionWatch

An opaque structure representing a watched GtkExpression.

The contents of GtkExpressionWatch should only be accessed through the provided API.

evaluate(value)[source]
Parameters:

value (GObject.Value) – an empty GValue to be set

Returns:

TRUE if the expression could be evaluated and value was set

Return type:

bool

Evaluates the watched expression and on success stores the result in value.

This is equivalent to calling [method`Gtk`.Expression.evaluate] with the expression and this pointer originally used to create watch.

ref()[source]
Returns:

the GtkExpressionWatch with an additional reference

Return type:

Gtk.ExpressionWatch

Acquires a reference on the given GtkExpressionWatch.

unref()[source]

Releases a reference on the given GtkExpressionWatch.

If the reference was the last, the resources associated to self are freed.

unwatch()[source]

Stops watching an expression.

See [method`Gtk`.Expression.watch] for how the watch was established.