GcrSelector

GcrSelector — A selector widget to select certificates or keys.

Synopsis

                    GcrSelector;
                    GcrSelectorClass;
enum                GcrSelectorMode;
GcrCollection *            gcr_selector_get_collection  (GcrSelector *self);
const GcrColumn *          gcr_selector_get_columns     (GcrSelector *self);
GcrSelectorMode     gcr_selector_get_mode               (GcrSelector *self);
GcrSelector *              gcr_selector_new             (GcrCollection *collection,
                                                         const GcrColumn *columns,
                                                         GcrSelectorMode mode);

Description

The GcrSelector can be used to select certificates or keys. The selector comes in one of two modes: GCR_SELECTOR_MODE_SINGLE and GCR_SELECTOR_MODE_MULTIPLE. The single selector mode allows the user to select one object at a time, and the multiple selector allows the user to select multiple objects from a list.

Details

GcrSelector

typedef struct _GcrSelector GcrSelector;

A selector widget.


GcrSelectorClass

typedef struct _GcrSelectorClass GcrSelectorClass;

The class for GcrSelector.


enum GcrSelectorMode

typedef enum _GcrSelectorMode {
	GCR_SELECTOR_MODE_SINGLE = 1,
	GCR_SELECTOR_MODE_MULTIPLE
} GcrSelectorMode;

The mode for the selector.

GCR_SELECTOR_MODE_SINGLE

User can select a single object.

GCR_SELECTOR_MODE_MULTIPLE

The user can select multiple objects.

gcr_selector_get_collection ()

GcrCollection *            gcr_selector_get_collection  (GcrSelector *self);

Get the collection that this selector is displaying objects from.

self :

The selector

Returns :

The collection, owned by the selector.

gcr_selector_get_columns ()

const GcrColumn *          gcr_selector_get_columns     (GcrSelector *self);

Get the columns displayed in a selector in multiple mode.

self :

The selector

Returns :

The columns, owned by the selector.

gcr_selector_get_mode ()

GcrSelectorMode     gcr_selector_get_mode               (GcrSelector *self);

Get the mode of the selector, whether single or multiple selection.

self :

The selector

Returns :

The mode of the selector.

gcr_selector_new ()

GcrSelector *              gcr_selector_new             (GcrCollection *collection,
                                                         const GcrColumn *columns,
                                                         GcrSelectorMode mode);

Create a new GcrSelector.

collection :

The collection that contains the objects to display

columns :

The columns to use to display the objects

mode :

The mode of the selector

Returns :

A newly allocated selector, which should be released with g_object_unref().