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.

The iter argument may be null if you just want to test if selection has any selected nodes.

The model argument is filled with the current model as a convenience.

This function will not work with gtk.types.SelectionMode.Multiple. See gtk.tree_selection.TreeSelection.getSelectedRows instead.

Parameters

modelthe model
iterthe iterator for the selected row

Returns

true, if there is a selected node.