## GcrListSelector

GcrListSelector — A selector widget to one or more certificates from a list.

## Synopsis

    struct              GcrListSelector;
    struct              GcrListSelectorClass;
    GcrListSelector *   gcr_list_selector_new               (GcrCollection *collection);
    GcrCollection *     gcr_list_selector_get_collection    (GcrListSelector *self);
    const GcrColumn *   gcr_list_selector_get_columns       (GcrListSelector *self);
    GList *             gcr_list_selector_get_selected      (GcrListSelector *self);
    void                gcr_list_selector_set_selected      (GcrListSelector *self,
                                                             GList *selected);

## Description

The GcrListSelector can be used to select one or more certificates or keys. Live search is available for quick filtering.

## Details

### struct GcrListSelector

    struct GcrListSelector {
    	GtkTreeView parent;
    };

A list selector widget.

GtkTreeView `parent`; | Parent object

### struct GcrListSelectorClass

    struct GcrListSelectorClass {
    };

The class for GcrListSelector.

### gcr_list_selector_new ()

    GcrListSelector *   gcr_list_selector_new               (GcrCollection *collection);

### gcr_list_selector_get_collection ()

    GcrCollection *     gcr_list_selector_get_collection    (GcrListSelector *self);

Get the collection that this selector is displaying objects from.

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

### gcr_list_selector_get_columns ()

    const GcrColumn *   gcr_list_selector_get_columns       (GcrListSelector *self);

### gcr_list_selector_get_selected ()

    GList *             gcr_list_selector_get_selected      (GcrListSelector *self);

Get a list of selected objects.

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

### gcr_list_selector_set_selected ()

    void                gcr_list_selector_set_selected      (GcrListSelector *self,
                                                             GList *selected);

Select certain objects in the selector.

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