set_model


Description:

public void set_model (TreeModel? model)

Sets the model for a `GtkTreeView`.

Note:

Use [class@Gtk.ListView] or [class@Gtk.ColumnView] instead

If the this already has a model set, it will remove it before setting the new model. If model is null, then it will unset the old model.

Parameters:

this

A `GtkTreeView`.

model

The model.