![]() |
![]() |
![]() |
Gcr Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
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
);
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.
typedef enum _GcrSelectorMode { GCR_SELECTOR_MODE_SINGLE = 1, GCR_SELECTOR_MODE_MULTIPLE } GcrSelectorMode;
The mode for the selector.
GcrCollection * gcr_selector_get_collection (GcrSelector *self
);
Get the collection that this selector is displaying objects from.
|
The selector |
Returns : |
The collection, owned by the selector. |
const GcrColumn * gcr_selector_get_columns (GcrSelector *self
);
Get the columns displayed in a selector in multiple mode.
|
The selector |
Returns : |
The columns, owned by the selector. |
GcrSelectorMode gcr_selector_get_mode (GcrSelector *self
);
Get the mode of the selector, whether single or multiple selection.
|
The selector |
Returns : |
The mode of the selector. |
GcrSelector * gcr_selector_new (GcrCollection *collection
,const GcrColumn *columns
,GcrSelectorMode mode
);
Create a new GcrSelector.
|
The collection that contains the objects to display |
|
The columns to use to display the objects |
|
The mode of the selector |
Returns : |
A newly allocated selector, which should be released with
g_object_unref() . |