changeset 22254:f60df7e0450b

Improve the spacing in Pidgin's certificate manager window
author Mark Doliner <mark@kingant.net>
date Sun, 03 Feb 2008 11:00:50 +0000
parents f5d132f52f2a
children c55f695ecae4
files pidgin/gtkcertmgr.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c	Sun Feb 03 10:07:57 2008 +0000
+++ b/pidgin/gtkcertmgr.c	Sun Feb 03 11:00:50 2008 +0000
@@ -410,6 +410,8 @@
 	tpm_dat->mgmt_widget = mgmt_widget =
 		gtk_hbox_new(FALSE, /* Non-homogeneous */
 			     PIDGIN_HIG_BORDER);
+	gtk_container_set_border_width(GTK_CONTAINER(mgmt_widget), 6);
+	gtk_box_set_spacing(GTK_BOX(mgmt_widget), 6);
 	gtk_widget_show(mgmt_widget);
 
 	/* Ensure that everything gets cleaned up when the dialog box
@@ -424,7 +426,7 @@
 	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 */
+			0);
 	gtk_widget_show(GTK_WIDGET(sw));
 
 	/* List view */
@@ -473,7 +475,7 @@
 	bbox = gtk_vbutton_box_new();
 	gtk_box_pack_end(GTK_BOX(mgmt_widget), bbox,
 			 FALSE, FALSE, /* Do not take up space */
-			 0); /* TODO: this padding is probably wrong */
+			 0);
 	gtk_box_set_spacing(GTK_BOX(bbox), PIDGIN_HIG_BOX_SPACE);
 	gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_START);
 	gtk_widget_show(bbox);