Constructor
Gtk.GridView.new
Declaration [src]
GtkWidget*
gtk_grid_view_new (
  GtkSelectionModel* model,
  GtkListItemFactory* factory
)
Description [src]
Creates a new GtkGridView that uses the given factory for
mapping items to widgets.
The function takes ownership of the arguments, so you can write code like
grid_view = gtk_grid_view_new (create_model (),
  gtk_builder_list_item_factory_new_from_resource ("/resource.ui"));
Parameters
| model | GtkSelectionModel | 
| the model to use, or  | |
| Can be NULL | |
| Ownership of the data is transferred to the callee | |
| factory | GtkListItemFactory | 
| The factory to populate items with, or  | |
| Can be NULL | |
| Ownership of the data is transferred to the callee | 
Return value
| Returns: GtkWidget | |
| a new  | |
| Ownership is not transferred to the caller | |