GcrTreeSelector

## GcrTreeSelector GcrTreeSelector — A selector widget to select certificates or keys. |

## Synopsis

    struct              GcrTreeSelector;
    struct              GcrTreeSelectorClass;
    GcrCollection *     gcr_tree_selector_get_collection    (GcrTreeSelector *self);
    const GcrColumn *   gcr_tree_selector_get_columns       (GcrTreeSelector *self);
    GcrTreeSelector *   gcr_tree_selector_new               (GcrCollection *collection,
                                                             const GcrColumn *columns);
    GList *             gcr_tree_selector_get_selected      (GcrTreeSelector *self);
    void                gcr_tree_selector_set_selected      (GcrTreeSelector *self,
                                                             GList *selected);

## Description

The GcrTreeSelector can be used to select certificates or keys. It allows the user to select multiple objects from a tree.

## Details

### struct GcrTreeSelector

    struct GcrTreeSelector {
    	GtkTreeView parent;
    };

A tree selector widget.

GtkTreeView `parent`; | The parent object

### struct GcrTreeSelectorClass

    struct GcrTreeSelectorClass {
    };

The class for GcrTreeSelector.

### gcr_tree_selector_get_collection ()

    GcrCollection *     gcr_tree_selector_get_collection    (GcrTreeSelector *self);

Get the collection that this selector is displaying objects from.

`self` : | The selector
Returns : | The collection, owned by the selector.

### gcr_tree_selector_get_columns ()

    const GcrColumn *   gcr_tree_selector_get_columns       (GcrTreeSelector *self);

Get the columns displayed in a selector in multiple mode.

`self` : | The selector
Returns : | The columns, owned by the selector.

### gcr_tree_selector_new ()

    GcrTreeSelector *   gcr_tree_selector_new               (GcrCollection *collection,
                                                             const GcrColumn *columns);

Create a new GcrTreeSelector.

`collection` : | The collection that contains the objects to display
`columns` : | The columns to use to display the objects
Returns : | A newly allocated selector, which should be released with `g_object_unref()`.

### gcr_tree_selector_get_selected ()

    GList *             gcr_tree_selector_get_selected      (GcrTreeSelector *self);

Get a list of selected objects.

`self` : | The selector
Returns : | The list of selected objects, to be released with `g_list_free()`.

### gcr_tree_selector_set_selected ()

    void                gcr_tree_selector_set_selected      (GcrTreeSelector *self,
                                                             GList *selected);

Select certain objects in the selector.

`self` : | The selector
`selected` : | The list of objects to select.