1.136 <GtkObjectExpression>

Class: <GtkObjectExpression>

It derives from <GtkExpression>.

A <GObject> value in a <GtkExpression>.

Procedures

Method: object-expression:get-object self ⇒ %return
Method: get-object self ⇒ %return

Gets the object that the expression evaluates to.

self

Passed: a <GtkObjectExpression>.

an object <GtkExpression>

%return

Returned: a <GObject>, or #f.

the object, or NULL

Procedure: object-expression:new object ⇒ %return

Creates an expression evaluating to the given object with a weak reference.

Once the object is disposed, it will fail to evaluate.

This expression is meant to break reference cycles.

If you want to keep a reference to object, use Gtk.ConstantExpression.new.

object

Passed: a <GObject>.

object to watch

%return

Returned: a <GtkObjectExpression>.

a new <GtkExpression>