InitableT.newValist

Helper function for constructing GInitable object. This is similar to g_object_new_valist() but also initializes the object and returns NULL, setting an error on failure. Since 2.22

template InitableT(TStruct)
static
ObjectG
newValist
(,,
void* varArgs
,
Cancellable cancellable
)

Parameters

objectType GType

a GType supporting GInitable.

firstPropertyName string

the name of the first property, followed by the value, and other property value pairs, and ended by NULL.

varArgs void*

The var args list generated from first_property_name.

cancellable Cancellable

optional GCancellable object, NULL to ignore.

Return Value

Type: ObjectG

a newly allocated GObject, or NULL on error. [type GObject.Object][transfer full]

Throws

GException on failure.

Meta