diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 11:20:03 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-06 11:20:03 +0300 |
commit | 8c1bd54f5b09abc30eff7d65ead1dc1de1c32143 (patch) | |
tree | c749c168f6aa1ca5c3470f5761129aaa57d8de9f /src/ui/documentwidget.c | |
parent | a75a0073789decad190aad51b2cfbcc9977122a3 (diff) |
Added GmResponse as its own type
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 6d3e7a9c..48383560 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -447,16 +447,16 @@ static void updateTrust_DocumentWidget_(iDocumentWidget *d) { | |||
447 | d->certFlags = certFlags_GmRequest(d->request); | 447 | d->certFlags = certFlags_GmRequest(d->request); |
448 | d->certExpiry = certExpirationDate_GmRequest(d->request); | 448 | d->certExpiry = certExpirationDate_GmRequest(d->request); |
449 | iLabelWidget *lock = findWidget_App("navbar.lock"); | 449 | iLabelWidget *lock = findWidget_App("navbar.lock"); |
450 | if (~d->certFlags & available_GmRequestCertFlag) { | 450 | if (~d->certFlags & available_GmCertFlag) { |
451 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iTrue); | 451 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iTrue); |
452 | updateTextCStr_LabelWidget(lock, gray50_ColorEscape openLock_CStr); | 452 | updateTextCStr_LabelWidget(lock, gray50_ColorEscape openLock_CStr); |
453 | return; | 453 | return; |
454 | } | 454 | } |
455 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iFalse); | 455 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iFalse); |
456 | if (~d->certFlags & domainVerified_GmRequestCertFlag) { | 456 | if (~d->certFlags & domainVerified_GmCertFlag) { |
457 | updateTextCStr_LabelWidget(lock, red_ColorEscape closedLock_CStr); | 457 | updateTextCStr_LabelWidget(lock, red_ColorEscape closedLock_CStr); |
458 | } | 458 | } |
459 | else if (d->certFlags & trusted_GmRequestCertFlag) { | 459 | else if (d->certFlags & trusted_GmCertFlag) { |
460 | updateTextCStr_LabelWidget(lock, green_ColorEscape closedLock_CStr); | 460 | updateTextCStr_LabelWidget(lock, green_ColorEscape closedLock_CStr); |
461 | } | 461 | } |
462 | else { | 462 | else { |
@@ -672,21 +672,21 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
672 | format_CStr("%s%s Domain name %s\n" | 672 | format_CStr("%s%s Domain name %s\n" |
673 | "%s%s %s (%04d-%02d-%02d %02d:%02d:%02d)\n" | 673 | "%s%s %s (%04d-%02d-%02d %02d:%02d:%02d)\n" |
674 | "%s%s %s", | 674 | "%s%s %s", |
675 | d->certFlags & domainVerified_GmRequestCertFlag ? checked : unchecked, | 675 | d->certFlags & domainVerified_GmCertFlag ? checked : unchecked, |
676 | gray75_ColorEscape, | 676 | gray75_ColorEscape, |
677 | d->certFlags & domainVerified_GmRequestCertFlag ? "matches" : "mismatch", | 677 | d->certFlags & domainVerified_GmCertFlag ? "matches" : "mismatch", |
678 | d->certFlags & timeVerified_GmRequestCertFlag ? checked : unchecked, | 678 | d->certFlags & timeVerified_GmCertFlag ? checked : unchecked, |
679 | gray75_ColorEscape, | 679 | gray75_ColorEscape, |
680 | d->certFlags & timeVerified_GmRequestCertFlag ? "Not expired" : "Expired", | 680 | d->certFlags & timeVerified_GmCertFlag ? "Not expired" : "Expired", |
681 | d->certExpiry.year, | 681 | d->certExpiry.year, |
682 | d->certExpiry.month, | 682 | d->certExpiry.month, |
683 | d->certExpiry.day, | 683 | d->certExpiry.day, |
684 | d->certExpiry.hour, | 684 | d->certExpiry.hour, |
685 | d->certExpiry.minute, | 685 | d->certExpiry.minute, |
686 | d->certExpiry.second, | 686 | d->certExpiry.second, |
687 | d->certFlags & trusted_GmRequestCertFlag ? checked : unchecked, | 687 | d->certFlags & trusted_GmCertFlag ? checked : unchecked, |
688 | gray75_ColorEscape, | 688 | gray75_ColorEscape, |
689 | d->certFlags & trusted_GmRequestCertFlag ? "Trusted on first use" : "Not trusted")); | 689 | d->certFlags & trusted_GmCertFlag ? "Trusted on first use" : "Not trusted")); |
690 | return iTrue; | 690 | return iTrue; |
691 | } | 691 | } |
692 | else if (isCommand_UserEvent(ev, "copy")) { | 692 | else if (isCommand_UserEvent(ev, "copy")) { |