Package: gtk

Function gtk:tree-selection-selected-rows

Lambda List

gtk:tree-selection-selected-rows (selection)

Arguments

selection -- a gtk:tree-selection object

Return Value

The list containing a gtk:tree-path instance for each selected row.

Details

Creates a list of path of all selected rows. Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of gtk:tree-row-reference objects. To do this, you can use the gtk:tree-row-reference-new function.

Notes

As a convenience the C implementation also gets the current model of the tree view wiget associated with the selection. Use the gtk:tree-selection-tree-view and gtk:tree-view-model functions instead to get the model.

Warning

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

See also

2024-11-5