Gtk.ComboBox.prototype.set_active_id
function set_active_id(active_id:String):Boolean { // Gjs wrapper for gtk_combo_box_set_active_id() }
Changes the active row of combo_box to the one that has an ID equal to active_id, or unsets the active row if active_id is null. Rows having a null ID string cannot be made active by this function.
If the Gtk.id-column property of combo_box is unset or if no row has the given ID then the function does nothing and returns false.
Since 3.0
- active_id
the ID of the row to select, or null
- Returns
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.