Package: gtk

Accessor gtk:tree-view-tooltip-column

Lambda List

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

Syntax

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

Arguments

object -- a gtk:tree-view widget
column -- an integer which is a valid column number for tree view's model

Details

Accessor of the tooltip-column slot of the gtk:tree-view class. The gtk:tree-view-tooltip-column function returns the column of the tree view's model which is being used for displaying tooltips on the tree view's rows.

If you only plan to have simple (text-only) tooltips on full rows, you can use this function to have the gtk:tree-view widget handle these automatically for you. The column argument should be set to the column in the tree view's model containing the tooltip texts, or -1 to disable this feature.

When enabled, the has-tooltip property will be set to true and the tree view will connect a "query-tooltip" signal handler.

Note that the signal handler sets the text with the gtk:tooltip-set-markup function, so &, <, etc have to be escaped in the text.

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