Gtk.ObjectExpression

g Gtk.Expression Gtk.Expression Gtk.ObjectExpression Gtk.ObjectExpression Gtk.Expression->Gtk.ObjectExpression

Subclasses:

None

Methods

Inherited:

Gtk.Expression (7)

class

new (object)

get_object ()

Virtual Methods

None

Fields

None

Class Details

class Gtk.ObjectExpression
Bases:

Gtk.Expression

Abstract:

No

A GObject value in a GtkExpression.

classmethod new(object)[source]
Parameters:

object (GObject.Object) – object to watch

Returns:

a new GtkExpression

Return type:

Gtk.ObjectExpression

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 [ctor`Gtk`.ConstantExpression.new].

get_object()[source]
Returns:

the object, or NULL

Return type:

GObject.Object or None

Gets the object that the expression evaluates to.