Gtk.ComboBox.prototype.set_model

function set_model(model:Gtk.TreeModel):void {
    // Gjs wrapper for gtk_combo_box_set_model()
}

Sets the model used by combo_box to be model. 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 Gtk.CellLayout.prototype.clear yourself if you need to set up different cell renderers for the new model.

Since 2.4

model

A Gtk.TreeModel