TreeSelection.getSelected

Sets iter to the currently selected node if selection is set to gtk.types.SelectionMode.Single or gtk.types.SelectionMode.Browse. iter may be NULL if you just want to test if selection has any selected nodes. model is filled with the current model as a convenience. This function will not work if you use selection is gtk.types.SelectionMode.Multiple.

More...
class TreeSelection
bool
getSelected

Parameters

model gtk.tree_model.TreeModel

A pointer to set to the gtk.tree_model.TreeModel

iter gtk.tree_iter.TreeIter

Return Value

Type: bool

TRUE, if there is a selected node.

Detailed Description

Deprecated: Use GtkListView or GtkColumnView