Package: gtk
Function gtk:tree-selection-selected
Lambda Listgtk:tree-selection-selected (selection) ArgumentsReturn Value The gtk:tree-iter iterator for the selected node, or nil
if there is no selected node. Details
Returns the iterator to the currently selected node if the selection mode is set to the :single or :browse values of the gtk:selection-mode
enumeration. This function will not work if you use the :multiple
selection mode. NotesExamples(let* ((selection (gtk:tree-view-selection view)) ;; This will only work in single or browse selection mode (iter (gtk:tree-selection-selected selection))) (if iter ;; A row is selected ... ;; No row is selected ... ... ) | See also |
2025-07-04