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 slot access function gtk-combo-box-active returns the index of the currently active item, or -1 if there is no active item. The slot access (setf gtk-combo-box-active) 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.
 

See also

*2021-2-4