Package: gtk

Accessor gtk:combo-box-active-id

Lambda List

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

Syntax

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

Arguments

object -- a gtk:combo-box widget
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 gtk:combo-box-active-id function 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 (setf gtk:combo-box-active-id) function changes the active row of the combo box to the one that has an ID equal to id, or unsets the active row if the id argument is nil. Rows having a nil ID string cannot be made active by this function.

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

Warning

The gtk:combo-box implementation is deprecated since 4.10. Use the gtk:drop-down widget instead.
 

See also

2024-4-26