ComboBox.setActiveId

Changes the active row of combo_box to the one that has an ID equal to active_id.

If active_id is null, the active row is unset. Rows having a null ID string cannot be made active by this function.

If the propertyGtk.ComboBox:id-column property of combo_box is unset or if no row has the given ID then the function does nothing and returns false.

More...
class ComboBox
bool
setActiveId
(
string activeId = null
)

Parameters

activeId string

the ID of the row to select

Return Value

Type: bool

true if a row with a matching ID was found. If a null active_id was given to unset the active row, the function always returns true.

Detailed Description

Deprecated: Use gtk.drop_down.DropDown