insert

open fun insert(position: <Error class: unknown class>, id: String? = null, text: String)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

Use class@Gtk.DropDown

---

Inserts @text at @position in the list of strings stored in @combo_box.

If @id is non-null then it is used as the ID of the row. See property@Gtk.ComboBox:id-column.

If @position is negative then @text is appended.

Parameters

position

An index to insert @text

id

a string ID for this value

text

A string to display