3.8 <GtkExpressionWatch>

Structure: <GtkExpressionWatch>

An opaque structure representing a watched <GtkExpression>.

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

Procedures

Method: expression-watch:evaluate? self value ⇒ %return
Method: evaluate? self value ⇒ %return

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

This is equivalent to calling expression:evaluate? with the expression and this pointer originally used to create watch.

self

Passed: a <GtkExpressionWatch>.

a <GtkExpressionWatch>

value

Passed: a <GValue>.

an empty <GValue> to be set

%return

Returned: a boolean.

TRUE if the expression could be evaluated and value was set

Method: expression-watch:ref self ⇒ %return
Method: ref self ⇒ %return

Acquires a reference on the given <GtkExpressionWatch>.

self

Passed: a <GtkExpressionWatch>.

a <GtkExpressionWatch>

%return

Returned: a <GtkExpressionWatch>.

the <GtkExpressionWatch> with an additional reference

Method: expression-watch:unref self
Method: unref self

Releases a reference on the given <GtkExpressionWatch>.

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

self

Passed: a <GtkExpressionWatch>.

a <GtkExpressionWatch>

Method: expression-watch:unwatch self
Method: unwatch self

Stops watching an expression.

See expression:watch for how the watch was established.

self

Passed: a <GtkExpressionWatch>.

watch to release