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.

Note:

Use GtkListView or GtkColumnView

iter may be NULL if you just want to test if this has any selected nodes. model is filled with the current model as a convenience. This function will not work if you use this is gtk_selection_multiple.

Parameters:

this

A `GtkTreeSelection`.

model

A pointer to set to the `GtkTreeModel`

iter

The `GtkTreeIter`

Returns:

TRUE, if there is a selected node.