im.pidgin.pidgin: 6fa0bcc4f894502b09387368aea143e9378d84c5

markdoliner at pidgin.im markdoliner at pidgin.im
Sun Feb 3 05:10:43 EST 2008


-----------------------------------------------------------------
Revision: 6fa0bcc4f894502b09387368aea143e9378d84c5
Ancestor: 7fa15fa3aab45c4cd7f0a0b91626a86c0e6822f2
Author: markdoliner at pidgin.im
Date: 2008-02-03T10:07:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6fa0bcc4f894502b09387368aea143e9378d84c5

Modified files:
        pidgin/gtkcertmgr.c

ChangeLog: 

Add the list of certificates in Pidgin's certificate manager to a
scrolled window

-------------- next part --------------
============================================================
--- pidgin/gtkcertmgr.c	fc061551c1b222b293e7d0e588fb2ee44df7977d
+++ pidgin/gtkcertmgr.c	6b93234ca505ee435956549fb58d75ecd13e5017
@@ -392,6 +392,7 @@ tls_peers_mgmt_build(void)
 {
 	GtkWidget *bbox;
 	GtkListStore *store;
+	GtkWidget *sw;
 
 	/* This block of variables will end up in tpm_dat */
 	GtkTreeView *listview;
@@ -416,6 +417,16 @@ tls_peers_mgmt_build(void)
 	g_signal_connect(G_OBJECT(mgmt_widget), "destroy",
 			 G_CALLBACK(tls_peers_mgmt_destroy), NULL);
 
+	/* Scrolled window */
+	sw = gtk_scrolled_window_new(NULL,NULL);
+	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
+			GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN);
+	gtk_box_pack_start(GTK_BOX(mgmt_widget), GTK_WIDGET(sw),
+			TRUE, TRUE, /* Take up lots of space */
+			6); /* TODO: this padding is wrong */
+	gtk_widget_show(GTK_WIDGET(sw));
+
 	/* List view */
 	store = gtk_list_store_new(TPM_N_COLUMNS, G_TYPE_STRING);
 
@@ -452,9 +463,7 @@ tls_peers_mgmt_build(void)
 	g_signal_connect(G_OBJECT(select), "changed",
 			 G_CALLBACK(tls_peers_mgmt_select_chg_cb), NULL);
 
-	gtk_box_pack_start(GTK_BOX(mgmt_widget), GTK_WIDGET(listview),
-			   TRUE, TRUE, /* Take up lots of space */
-			   0); /* TODO: this padding is wrong */
+	gtk_container_add(GTK_CONTAINER(sw), GTK_WIDGET(listview));
 	gtk_widget_show(GTK_WIDGET(listview));
 
 	/* Fill the list for the first time */


More information about the Commits mailing list