changeset 19038:5040616cace9

- Mock tls_peers mgmt interface
author William Ehlhardt <williamehlhardt@gmail.com>
date Thu, 19 Jul 2007 08:56:21 +0000
parents d33d3203bbeb
children 3054f7c6b30d
files pidgin/gtkcertmgr.c
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c	Thu Jul 19 08:10:19 2007 +0000
+++ b/pidgin/gtkcertmgr.c	Thu Jul 19 08:56:21 2007 +0000
@@ -40,6 +40,22 @@
 #include "gtkcertmgr.h"
 
 /*****************************************************************************
+ * X.509 tls_peers management interface                                      *
+ *****************************************************************************/
+static GtkWidget *
+tls_peers_mgmt_build(void)
+{
+	GtkWidget *label = gtk_label_new("TLS PEEERSSSSS!!!");
+	gtk_widget_show(label);
+	return label;
+}
+
+PidginCertificateManager tls_peers_mgmt = {
+	tls_peers_mgmt_build, /* Widget creation function */
+	N_("SSL Servers")
+};
+
+/*****************************************************************************
  * GTK+ main certificate manager                                             *
  *****************************************************************************/
 typedef struct
@@ -129,6 +145,7 @@
 	gtk_box_pack_start(GTK_BOX(vbox), dlg->notebook,
 			   TRUE, TRUE, /* Notebook should take extra space */
 			   0);
+	gtk_widget_show(dlg->notebook);
 
 	/* Box for the close button */
 	bbox = gtk_hbutton_box_new();
@@ -144,6 +161,13 @@
 	g_signal_connect(G_OBJECT(dlg->closebutton), "clicked",
 			 G_CALLBACK(certmgr_close_cb), dlg);
 
+	/* Add the defined certificate managers */
+	/* TODO: Find a way of determining whether each is shown or not */
+	/* TODO: Implement this correctly */
+	gtk_notebook_append_page(GTK_NOTEBOOK (dlg->notebook),
+				 (tls_peers_mgmt.build)(),
+				 gtk_label_new(_(tls_peers_mgmt.label)) );
+
 	gtk_widget_show(win);
 }