Package: gtk

Accessor gtk:combo-box-active

Lambda List

gtk:combo-box-active (object)

Syntax

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

Arguments

object -- a gtk:combo-box widget
index -- an integer with the index in the model passed during construction, or -1 to have no active item

Details

Accessor of the active slot of the gtk:combo-box class. The gtk:combo-box-active function returns the index of the currently active item, or -1 if there is no active item. The (setf gtk:combo-box-active) function sets the active item.

If the model is a non-flat tree model, and the active item is not an immediate child of the root of the tree, this function returns (first (gtk:tree-path-indices path)), where path is the gtk:tree-path instance of the active item.

Warning

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

See also

2024-4-26