Constructor

IdeTruncateModelnew

Declaration

IdeTruncateModel*
ide_truncate_model_new (
  GListModel* child_model
)

Description

Create a new IdeTruncateModel that wraps child_model. Only IdeTruncateModel:max-items will be displayed until IdeTrunicateModel:expanded is set.

Parameters

child_model

Type: GObject

A GListModel.

The data is owned by the caller of the function.

Return value

Type: IdeTruncateModel

A newly created IdeTruncateModel.

The caller of the function takes ownership of the data, and is responsible for freeing it.