Package: gtk

Accessor gtk-combo-box-active-id

Lambda List

gtk-combo-box-active-id (object)

Syntax

(gtk-combo-box-active-id object) => active-id
(setf (gtk-combo-box-active-id object) active-id)

Arguments

object -- a gtk-combo-box widget
active-id -- a string with the ID of the row to select, or nil

Details

Accessor of the active-id slot of the gtk-combo-box class.

The slot access function gtk-combo-box-active-id returns the ID of the active row of the combo box. This value is taken from the active row and the column specified by the id-column property of the combo box. The slot access function (setf gtk-combo-box-active-id) changes the active row of the combo box to the one that has an ID equal to active-id, or unsets the active row if active-id is nil. Rows having a nil ID string cannot be made active by this function.

If the id-column property of combo-box is unset or if no row has the given ID then the function does nothing and returns nil.
 

See also

*2021-3-13