changeset 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 3715a9411806
children 4691b5f80ac8
files libpurple/certificate.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }