Package: gtk

Function gtk-tree-view-scroll-to-cell

Lambda List

gtk-tree-view-scroll-to-cell (view path column &optional row-align col-align)

Arguments

view -- a gtk-tree-view widget
path -- the gtk-tree-path instance of the row to move to, or nil
column -- the gtk-tree-view-column object to move horizontally to, or nil
row-align -- an optional float with the vertical alignment of the row specified by path, the default is 0.5
col-align -- an optional float with the horizontal alignment of the column specified by column, the default is 0.5

Details

Moves the alignments of the tree view to the position specified by column and path. If column is nil, then no horizontal scrolling occurs. Likewise, if path is nil no vertical scrolling occurs. At a minimum, one of column or path need to be non-nil. The argument row-align determines where the row is placed, and the argument col-align determines where column is placed. Both are expected to be between 0.0 and 1.0. 0.0 means left/top alignment, 1.0 means right/bottom alignment, 0.5 means center.

If the cell is currently visible on the screen, nothing is done.

This function only works if the model is set, and path is a valid row on the model. If the model changes before the tree view is realized, the centered path will be modified to reflect this change.
 

See also

2021-2-26