# HG changeset patch # User Mark Doliner # Date 1188670992 0 # Node ID 4a1812e1ec3581007067a2e886532aec35d59743 # Parent 3715a94118069f32f4d9f53a51be64e180cbec6e 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? diff -r 3715a9411806 -r 4a1812e1ec35 libpurple/certificate.c --- a/libpurple/certificate.c Sat Sep 01 02:37:52 2007 +0000 +++ b/libpurple/certificate.c Sat Sep 01 18:23:12 2007 +0000 @@ -1083,11 +1083,14 @@ x509_tls_cached_show_cert(x509_tls_cached_ua_ctx *c, gint id) { PurpleCertificate *disp_crt = c->vrq->cert_chain->data; - purple_certificate_display_x509(disp_crt); /* Since clicking a button closes the request, show it again */ x509_tls_cached_user_auth(c->vrq, c->reason); + /* Show the certificate AFTER re-opening the dialog so that this + appears above the other */ + purple_certificate_display_x509(disp_crt); + x509_tls_cached_ua_ctx_free(c); }