Constructor

IdeUniqueListModelnew

since: 44

Declaration

IdeUniqueListModel*
ide_unique_list_model_new (
  GListModel* model,
  GtkSorter* sorter
)

Description

Creates a new IdeUniqueListModel which can deduplicate items which are sequential.

Available since: 44

Parameters

model

Type: GObject

A GListModel or NULL.

The argument can be NULL.
The called function takes ownership of the data, and is responsible for freeing it.
sorter

Type: GtkSorter

A GtkSorter or NULL.

The argument can be NULL.
The called function takes ownership of the data, and is responsible for freeing it.

Return value

Type: IdeUniqueListModel

An IdeUniqueListModel.

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