Method

IdeObjectensure_child_typed

Declaration

IdeObject*
ide_object_ensure_child_typed (
  IdeObject* self,
  GType type
)

Description

Like ide_object_get_child_typed() except that it creates an object of type if it is missing.

Parameters

type

Type: GType

The GType of the child.

Return value

Type: IdeObject

An IdeObject or NULL.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.