Constructor
GtkListViewnew
Declaration [src]
GtkWidget*
gtk_list_view_new (
GtkSelectionModel* model,
GtkListItemFactory* factory
)
Description [src]
Creates a new GtkListView
that uses the given factory
for
mapping items to widgets.
The function takes ownership of the arguments, so you can write code like
list_view = gtk_list_view_new (create_model (),
gtk_builder_list_item_factory_new_from_resource ("/resource.ui"));
Parameters
model |
GtkSelectionModel |
The model to use. |
|
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
factory |
GtkListItemFactory |
The factory to populate items with. |
|
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. |
Return value
Returns: | GtkWidget |
A new |
|
The data is owned by the called function. |