Class

ValentObject

unstable since: 1.0

Description [src]

class Valent.Object : GObject.Object
{
  /* No available fields */
}

A base class for objects.

ValentObject is a specialized GObject class, based on GNOME Builder’s IdeObject. It provides a simple base class with helpers for working in threads.

Instances have a GRecMutex and a GCancellable that is created on demand by valent_object_ref_cancellable() is called. When the object is destroyed, the GCancellable::cancel signal is emitted.

Available since: 1.0

Hierarchy

hierarchy this ValentObject ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

valent_object_chain_cancellable

Chain a cancellable to the object’s cancellable.

unstable since: 1.0

valent_object_destroy

Destroy the object.

unstable since: 1.0

valent_object_in_destruction

Get whether the object is destroyed or in destruction.

unstable since: 1.0

valent_object_lock

Acquire a lock on object.

unstable since: 1.0

valent_object_notify

Emit GObject::notify on object, on the main thread.

unstable since: 1.0

valent_object_notify_by_pspec

Emit GObject::notify on object, on the main thread.

unstable since: 1.0

valent_object_ref_cancellable

Get a GCancellable for the object.

unstable since: 1.0

valent_object_unlock

Release a lock on object.

unstable since: 1.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Valent.Object:cancellable

The object GCancellable.

unstable since: 1.0

Signals

Valent.Object::destroy

Emitted when the object is being destroyed.

unstable since: 1.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct ValentObjectClass {
  GObjectClass parent_class;
  void (* destroy) (
    ValentObject* object
  );
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.
destroy: void (* destroy) ( ValentObject* object )
No description available.

Virtual methods

Valent.ObjectClass.destroy

Destroy the object.

unstable since: 1.0