diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -30,6 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
30 | #include "gmdocument.h" | 30 | #include "gmdocument.h" |
31 | #include "gmutil.h" | 31 | #include "gmutil.h" |
32 | #include "history.h" | 32 | #include "history.h" |
33 | #include "ui/certimportwidget.h" | ||
33 | #include "ui/color.h" | 34 | #include "ui/color.h" |
34 | #include "ui/command.h" | 35 | #include "ui/command.h" |
35 | #include "ui/documentwidget.h" | 36 | #include "ui/documentwidget.h" |
@@ -994,14 +995,6 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) { | |||
994 | return iFalse; | 995 | return iFalse; |
995 | } | 996 | } |
996 | 997 | ||
997 | iBool handleCertificateImportCommands_(iWidget *dlg, const char *cmd) { | ||
998 | if (equal_Command(cmd, "certimport.accept") || equal_Command(cmd, "cancel")) { | ||
999 | destroy_Widget(dlg); | ||
1000 | return iTrue; | ||
1001 | } | ||
1002 | return iFalse; | ||
1003 | } | ||
1004 | |||
1005 | iBool willUseProxy_App(const iRangecc scheme) { | 998 | iBool willUseProxy_App(const iRangecc scheme) { |
1006 | return schemeProxy_App(scheme) != NULL; | 999 | return schemeProxy_App(scheme) != NULL; |
1007 | } | 1000 | } |
@@ -1412,8 +1405,10 @@ iBool handleCommand_App(const char *cmd) { | |||
1412 | return iTrue; | 1405 | return iTrue; |
1413 | } | 1406 | } |
1414 | else if (equal_Command(cmd, "ident.import")) { | 1407 | else if (equal_Command(cmd, "ident.import")) { |
1415 | iWidget *dlg = makeCertificateImport_Widget(); | 1408 | iCertImportWidget *imp = new_CertImportWidget(); |
1416 | setCommandHandler_Widget(dlg, handleCertificateImportCommands_); | 1409 | setPageContent_CertImportWidget(imp, sourceContent_DocumentWidget(document_App())); |
1410 | addChild_Widget(d->window->root, iClob(imp)); | ||
1411 | postRefresh_App(); | ||
1417 | return iTrue; | 1412 | return iTrue; |
1418 | } | 1413 | } |
1419 | else if (equal_Command(cmd, "ident.signin")) { | 1414 | else if (equal_Command(cmd, "ident.signin")) { |