comparison pidgin/gtkcertmgr.c @ 19039:3054f7c6b30d

- Add logic to allow tls_peers manager to properly uninit itself when the certmgr is closed
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 20 Jul 2007 08:39:00 +0000
parents 5040616cace9
children dd4444be5e26
comparison
equal deleted inserted replaced
19038:5040616cace9 19039:3054f7c6b30d
40 #include "gtkcertmgr.h" 40 #include "gtkcertmgr.h"
41 41
42 /***************************************************************************** 42 /*****************************************************************************
43 * X.509 tls_peers management interface * 43 * X.509 tls_peers management interface *
44 *****************************************************************************/ 44 *****************************************************************************/
45
46 static void
47 tls_peers_mgmt_destroy(GtkWidget *mgmt_widget, gpointer data)
48 {
49 purple_debug_info("certmgr",
50 "tls peers self-destructs\n");
51 }
52
45 static GtkWidget * 53 static GtkWidget *
46 tls_peers_mgmt_build(void) 54 tls_peers_mgmt_build(void)
47 { 55 {
48 GtkWidget *label = gtk_label_new("TLS PEEERSSSSS!!!"); 56 GtkWidget *mgmt_widget = gtk_label_new("TLS PEEERSSSSS!!!");
49 gtk_widget_show(label); 57 gtk_widget_show(mgmt_widget);
50 return label; 58
59 /* Ensure that everything gets cleaned up when the dialog box
60 is closed */
61 g_signal_connect(G_OBJECT(mgmt_widget), "destroy",
62 G_CALLBACK(tls_peers_mgmt_destroy), NULL);
63 return mgmt_widget;
51 } 64 }
52 65
53 PidginCertificateManager tls_peers_mgmt = { 66 PidginCertificateManager tls_peers_mgmt = {
54 tls_peers_mgmt_build, /* Widget creation function */ 67 tls_peers_mgmt_build, /* Widget creation function */
55 N_("SSL Servers") 68 N_("SSL Servers")