ObjectG.this

Creates a new instance of a #GObject subtype and sets its properties using the provided arrays. Both arrays must have exactly @n_properties elements, and the names and values correspond by index.

Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.

Parameters

objectType GType

the object type to instantiate

names string[]

the names of each property to be set

values Value[]

the values of each property to be set

Return Value

a new instance of @object_type

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.54