From fc8ef470ade0877d60d66c3e903992ae5f2940ad Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 18 Aug 2004 02:28:55 +0000 Subject: ** See bug #62963. 2004-08-16 Not Zed ** See bug #62963. * gui/cert-trust-dialog.c (ctd_response): fix c99 syntax. Spotted by Vincent Noel svn path=/trunk/; revision=26958 --- smime/ChangeLog | 7 +++++++ smime/gui/cert-trust-dialog.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'smime') diff --git a/smime/ChangeLog b/smime/ChangeLog index 2837a597ec..2e0e2da083 100644 --- a/smime/ChangeLog +++ b/smime/ChangeLog @@ -1,3 +1,10 @@ +2004-08-16 Not Zed + + ** See bug #62963. + + * gui/cert-trust-dialog.c (ctd_response): fix c99 syntax. Spotted + by Vincent Noel + 2004-08-12 Carlos Garnacho Parro * gui/certificate-manager.c: Optionally use GtkFileChooser if diff --git a/smime/gui/cert-trust-dialog.c b/smime/gui/cert-trust-dialog.c index 3148adfaa9..b36d99ff53 100644 --- a/smime/gui/cert-trust-dialog.c +++ b/smime/gui/cert-trust-dialog.c @@ -79,12 +79,12 @@ ctd_response(GtkWidget *w, guint id, CertTrustDialogData *data) CERT_ChangeCertTrust (CERT_GetDefaultCertDB(), icert, &trust); break; case GTK_RESPONSE_ACCEPT: { - g_signal_stop_emission_by_name(w, "response"); - /* just *what on earth* was chris thinking here!?!?! copied from certificate-manager.c */ GtkWidget *dialog = ca_trust_dialog_show (data->cacert, FALSE); CERTCertificate *icert = e_cert_get_internal_cert (data->cacert); + g_signal_stop_emission_by_name(w, "response"); + ca_trust_dialog_set_trust (dialog, e_cert_trust_has_trusted_ca (icert->trust, TRUE, FALSE, FALSE), e_cert_trust_has_trusted_ca (icert->trust, FALSE, TRUE, FALSE), -- cgit v1.2.3