Mercurial > pidgin
comparison libpurple/certificate.c @ 19564:4a1812e1ec35
When you have a certificate dialog and you click on "View Certificate",
re-open the dialog first and then show the certificate second. For me
this causes the certificate to be above the dialog, which seems like
the more common way that window managers would handle this.
I'm using xfwm. What have other people experienced?
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 01 Sep 2007 18:23:12 +0000 |
parents | f36d0d2bf6f2 |
children | 450f4a3c4c0f |
comparison
equal
deleted
inserted
replaced
19563:3715a9411806 | 19564:4a1812e1ec35 |
---|---|
1081 | 1081 |
1082 static void | 1082 static void |
1083 x509_tls_cached_show_cert(x509_tls_cached_ua_ctx *c, gint id) | 1083 x509_tls_cached_show_cert(x509_tls_cached_ua_ctx *c, gint id) |
1084 { | 1084 { |
1085 PurpleCertificate *disp_crt = c->vrq->cert_chain->data; | 1085 PurpleCertificate *disp_crt = c->vrq->cert_chain->data; |
1086 purple_certificate_display_x509(disp_crt); | |
1087 | 1086 |
1088 /* Since clicking a button closes the request, show it again */ | 1087 /* Since clicking a button closes the request, show it again */ |
1089 x509_tls_cached_user_auth(c->vrq, c->reason); | 1088 x509_tls_cached_user_auth(c->vrq, c->reason); |
1089 | |
1090 /* Show the certificate AFTER re-opening the dialog so that this | |
1091 appears above the other */ | |
1092 purple_certificate_display_x509(disp_crt); | |
1090 | 1093 |
1091 x509_tls_cached_ua_ctx_free(c); | 1094 x509_tls_cached_ua_ctx_free(c); |
1092 } | 1095 } |
1093 | 1096 |
1094 static void | 1097 static void |