Package: gtk

Accessor gtk:tree-view-search-column

Lambda List

gtk:tree-view-search-column (object)

Syntax

(gtk:tree-view-search-column object) => column
(setf (gtk:tree-view-search-column object) column)

Arguments

object -- a gtk:tree-view widget
column -- an integer with the column of the model to search in, or -1 to disable searching

Details

Accessor of the search-column slot of the gtk:tree-view class. The gtk:tree-view-search-column function gets the column searched on by the interactive search code. The (setf gtk:tree-view-search-column) function sets column as the column where the interactive search code should search in for the current model.

If the search column is set, users can use the "start-interactive-search" key binding to bring up search popup. The enable-search property controls whether simply typing text will also start an interactive search.

Note that the column argument refers to a column of the current model. The search column is reset to -1 when the model is changed.

Warning

The gtk:tree-view implementation is deprecated since 4.10. Please do not use it in newly written code.
 

See also

2024-3-10