Constructor

IdeCachedListModelnew

Declaration

IdeCachedListModel*
ide_cached_list_model_new (
  GListModel* model
)

Description

Creates a new list model that caches the items.

This might be useful if have a GtkMapListModel which would otherwise discard your mapped items.

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.

Return value

Type: IdeCachedListModel

An IdeCachedListModel.

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