cpw.ljfisher.ssl_client_auth: 1b0a0008: Update the user get cert info callback t...

lucas.fisher at gmail.com lucas.fisher at gmail.com
Sun Mar 11 12:33:01 EDT 2012


----------------------------------------------------------------------
Revision: 1b0a000805ce9ff82d9a57d677d5b0e21c18ccca
Parent:   0ca4cbf3b60ab36066c83d151b3a5729e744eb3a
Author:   lucas.fisher at gmail.com
Date:     03/11/12 12:26:26
Branch:   im.pidgin.cpw.ljfisher.ssl_client_auth
URL: http://d.pidgin.im/viewmtn/revision/info/1b0a000805ce9ff82d9a57d677d5b0e21c18ccca

Changelog: 

Update the user get cert info callback to use the new info dialog.

Changes against parent 0ca4cbf3b60ab36066c83d151b3a5729e744eb3a

  patched  pidgin/gtkcertmgr.c

-------------- next part --------------
============================================================
--- pidgin/gtkcertmgr.c	85341e6c33877cc706bb6d22d35c1a27806ca1ea
+++ pidgin/gtkcertmgr.c	745c31704a035e06886cfba3148f7c249bebf7f8
@@ -1050,6 +1050,7 @@ user_mgmt_info_cb(GtkWidget *button, gpo
 	GtkTreeModel *model;
 	gchar *id;
 	PurpleCertificate *crt;
+	gchar *title;
 
 	/* See if things are selected */
 	if (!gtk_tree_selection_get_selected(select, &model, &iter)) {
@@ -1066,10 +1067,14 @@ user_mgmt_info_cb(GtkWidget *button, gpo
 	g_return_if_fail(crt);
 
 	/* Fire the notification */
-	purple_certificate_display_x509(crt);
+	title = g_strdup_printf(_("Certificate Information for %s"), id);
+	purple_request_certificate(um_dat, title, NULL, NULL, crt,
+	                           _("OK"), G_CALLBACK(purple_certificate_destroy),
+	                           _("Cancel"), G_CALLBACK(purple_certificate_destroy),
+	                           crt);
 
 	g_free(id);
-	purple_certificate_destroy(crt);
+	g_free(title);
 }
 
 /***********************************************************


More information about the Commits mailing list