get_selected


Description:

public bool get_selected (out unowned TreeModel model, out TreeIter iter)

Sets iter to the currently selected node, if this is set to gtk_selection_single or gtk_selection_browse.

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

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

This function will not work with gtk_selection_multiple. See get_selected_rows instead.

Parameters:

this

A TreeSelection.

model

the model

iter

the iterator for the selected row

Returns:

true, if there is a selected node.