|  |  |  | Gcr Library Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Signals | ||||
struct GcrImportButton; struct GcrImportButtonClass; GcrImportButton * gcr_import_button_new (const gchar *label); void gcr_import_button_add_parsed (GcrImportButton *self,GcrParsed *parsed);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----GcrImportButton
GcrImportButton implements AtkImplementorIface, GtkBuildable, GtkActionable and GtkActivatable.
A button which imports keys and certificates. Shows a spinner when the button is activated. When more than one importer is available shows a drop down to select which to import to.
struct GcrImportButtonClass {
	GtkButtonClass parent_class;
	void    (*importing)   (GcrImportButton *self,
	                        GcrImporter *importer);
	void    (*imported)    (GcrImportButton *self,
	                        GcrImporter *importer,
	                        GError *error);
};
Class for GcrImportButton.
GcrImportButton *   gcr_import_button_new               (const gchar *label);
Create a new GcrImportButton.
| 
 | label to display on the button. [allow-none] | 
| Returns : | a newly created GcrImportButton. [transfer full] | 
void gcr_import_button_add_parsed (GcrImportButton *self,GcrParsed *parsed);
Queue an item to import via the button
| 
 | an import button | 
| 
 | a parsed item | 
"imported" signalvoid                user_function                      (GcrImportButton *self,
                                                        GObject         *importer,
                                                        GError          *error,
                                                        gpointer         user_data)      : Run Last
Signal emitted when an import completes or fails.
| 
 | the import button | 
| 
 | the importer that was imported to | 
| 
 | if import was successful NULL, or an error | 
| 
 | user data set when the signal handler was connected. | 
"importing" signalvoid                user_function                      (GcrImportButton *self,
                                                        GObject         *importer,
                                                        gpointer         user_data)      : Run Last
Signal emitted when an import begins.
| 
 | the import button | 
| 
 | the importer that will be imported to | 
| 
 | user data set when the signal handler was connected. |