## 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);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkWidget
                   +----GtkContainer
                         +----GtkTreeView
                               +----GcrTreeSelector

## Implemented Interfaces

GcrTreeSelector implements AtkImplementorIface, GtkBuildable and GtkScrollable.

## Properties

      "collection"               GcrCollection*        : Read / Write / Construct Only
      "columns"                  gpointer              : Read / Write / Construct Only

## 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;

A tree selector widget.

### 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. [transfer none]

### 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. [transfer none]

### 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()`. [transfer full]

### 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()`. [transfer container][element-type GLib.Object]

### 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. [element-type GLib.Object]

## Property Details

### The `"collection"` property

      "collection"               GcrCollection*        : Read / Write / Construct Only

The collection which contains the objects to display in the selector.

### The `"columns"` property

      "columns"                  gpointer              : Read / Write / Construct Only

The columns to use to display the objects.