set_model


Description:

public void set_model (TreeModel? model)

Sets the model used by this to be model.

Note:

Use [class@Gtk.DropDown]

Will unset a previously set model (if applicable). If model is null, then it will unset the model.

Note that this function does not clear the cell renderers, you have to call [method@Gtk.CellLayout.clear] yourself if you need to set up different cell renderers for the new model.

Parameters:

this

A `GtkComboBox`

model

A `GtkTreeModel`