TreeSelection.getSelected

bool getSelected(out gtk.tree_model.TreeModel model, out gtk.tree_iter.TreeIter iter)

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].

Parameters

modelA pointer to set to the [gtk.tree_model.TreeModel]
iterThe [gtk.tree_iter.TreeIter]

Returns

TRUE, if there is a selected node.

Deprecated

Use GtkListView or GtkColumnView