Constructor

GcrUiCollectionModelnew

Declaration [src]

GcrCollectionModel*
gcr_collection_model_new (
  GcrCollection* collection,
  GcrCollectionModelMode mode,
  ...
)

Description [src]

Create a new GcrCollectionModel. The variable argument list should contain pairs of property names, and GType values. The variable argument list should be terminated with NULL.

This constructor is not directly available to language bindings

Parameters

collection GcrCollection
 

The collection to represent.

 The data is owned by the caller of the function.
mode GcrCollectionModelMode
 

Whether list or tree mode.

...
 

The column names and types.

Return value

Returns: GcrCollectionModel
 

A newly allocated model, which should be released with g_object_unref().

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