gtkTreeSelectionGetSelected {RGtk2} | R Documentation

## gtkTreeSelectionGetSelected

### Description

Sets `iter` to the currently selected node if `selection` is set to `GTK_SELECTION_SINGLE` or `GTK_SELECTION_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_SELECTION_MULTIPLE`.

### Usage

    gtkTreeSelectionGetSelected(object)

### Arguments

``object`` | A `GtkTreeSelection`.

### Value

A list containing the following elements:

`retval` | [logical] TRUE, if there is a selected node.
``model`` | A pointer to set to the `GtkTreeModel`, or NULL. [ out ][ allow-none ]
``iter`` | The `GtkTreeIter`, or NULL. [ allow-none ]

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]